Process Payments
Process a payment in the payment gateway.
| Required Editions |
|---|
| Available in: Salesforce Spring ’20 |
To access commercepayments API, you need the PaymentPlatform org permission.
-
Get the payment capture request object from the
PaymentGatewayContext Class. -
Set the HTTP request object.
-
Read the parameters from the
CaptureRequestobject and prepare the HTTP request body. -
Make the HTTP call to the gateway using the
PaymentsHttp Class. -
Parse the
httpResponseand prepare theCaptureResponseobject. -
Return the
captureResponse.