Newer Version Available
Payment Sale Action
Capture a payment without any prior authorization and create a payment record. The
payment sale transaction consists of an authorize request and a capture request made to the
payment gateway at the same time. This way, the merchant can request funds to be transferred to
the merchant account in a single command, with no further action required.
To access Commerce Payments resources, you need the following permissions.
- Salesforce Order Management License or Salesforce B2B Commerce License
- PaymentsAPIUser user permission. This permission is available with the Salesforce Order Management or B2B Commerce License. Your Salesforce admin assigns it to your user profile.
The payment sale API handles only one payment at a time. Bulk requests aren't supported.
This object is available in API version 54.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v54.0/actions/standard/paymentSale
- Formats
- JSON
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| amount |
|
| paymentGatewayId |
|
| paymentMethodId |
|
| currencyIsoCode |
|
| idempotencyKey |
|
Outputs
| Output | Details |
|---|---|
| actionName |
|
| errors |
|
| isSuccess |
|
| outputValues |
|