You are here:
Authorize Payment Action
In Salesforce Order Management, authorize a payment on a credit card. You can include details for a new credit card or reference an existing payment method.
Required Editions
| Available in: Lightning Experience |
| View supported editions. |
| This feature requires the Salesforce Order Management add-on. To purchase, contact your Salesforce account executive. |
In Flow Builder, add an Action element to your flow. Select the Order
Management category, and search for Authorize Payment.
To access this action from REST API, use the name
authorizePayment.
If you're using the Enterprise edition, we recommend disabling the RollbackOnErrApexIAp permission and the RollbackOnErrApexIA preference. If you keep them enabled, the entire authorization is rolled back if there are any errors. Contact Salesforce Customer Support to disable permissions or preferences.
Set Input Values
Use values from earlier in the flow to set the inputs.
| Input Parameter | Description |
|---|---|
| Payment Authorization Request | This input is an Apex-defined variable of class ConnectApi.AuthorizationRequest, which includes these fields:
|
Store Output Values
Use output values later in the flow. The values are assigned when a response is received from the payment gateway.
| Output Parameter | Description |
|---|---|
| Payment Authorization Response | This output is an Apex-defined variable of class ConnectApi.AuthorizationResponse, which includes these fields:
|
Usage
Use this action in custom flows that require payment authorization, such as adding an item to an order or an uneven exchange. Before using it, verify with your payment provider that it supports payment authorization calls from Salesforce Order Management.

