Extend Payment providers in Headless API
This section explains how to develop further, on using a payment provider to checkout.
Important! Update the payment providers in the headless API project to their latest released version (The Payment provider addons may have a newer version than the version shipped with the headless API src zip)
Authorize
The code implementation to collect the payment (authorize) is at:
public AuthorizePaymentResult ExecutePayment(string externalOrderId, string paymentReferenceId, AuthorizePaymentArgs authorizePaymentArgs)
method of the ..\src\Litium.AddOns.HeadlessApi\Services\CheckoutService.cs file.
Other operations
Other payment operations such as capture, cancel and refund are implemented at
src\Litium.AddOns.HeadlessApi\Services\PaymentService.cs