Payment Intents Input

Payment intents input consumed to initiate a payment.
JSON examples
Here’s an example without saved payment method information:
1{
2  "amount": 8.99,
3  "currencyIsoCode": "USD",
4  "sourceObjectIds": [
5    "0a6xx0000000cuvAAA"
6  ],
7  "paymentGatewayId": "{{paymentGatewayId}}",
8  "paymentMethodType": "card",
9  "payerAccountId": "001xx000003GYwy"
10}
Here’s an example with saved payment method information:
1{
2  "amount": "250",
3  "applyDomainValidations": true,
4  "currencyIsoCode": "USD",
5  "sourceObjectIds": [
6    "001xx000003Gmk3AAC"
7  ],
8  "paymentGatewayId": "0b0xx00000000w5AAA",
9  "paymentMethodType": "us_bank_account",
10  "payerAccountId": "001xx000003GYwy",
11  "paymentMethod": {
12    "referenceOwnerId": "001xx000003Gmk3AAC",
13    "usageType": "OffSession",
14    "isDefault": true
15  }
16}
Properties
Name Type Description Required or Optional Available Version
additionalData Map<String, String> More data about the payment request. This property can include up to five key-value pairs. Each key and value can contain up to 255 characters. Optional 57.0
amount Double Amount to be captured. Required 57.0
applyDomain​Validations Boolean Indicates whether to apply domain-specific validations on the payment intent request (true) or not (false). The default value is false.

This field is applicable to these domains:

  • Collections
  • Commerce
  • Custom
  • FieldService
  • OrderManagement
  • Payments
  • Revenue
  • Sales
  • Scheduler
  • Service
Optional 63.0
currencyIso​Code String Three-letter ISO 4217 code indicating the currency of the payment. Required 57.0
isExpress Boolean Indicates whether the payment intent request is for Express checkout (true) or not (false). The default value is false.

This field is applicable to only the PayPal gateway.

Optional 60.0
isShipping​Applicable Boolean Indicates whether shipping is applicable to this particular payment (true) or not (false). The default value is false.

This field is applicable to only the PayPal gateway.

Optional 60.0
paymentGateway​Id String ID of the payment gateway that processes the payment intent. Required 57.0
paymentMethod Saved Payment Method Input Details required to save a payment method. Optional 58.0
paymentMethod​Type String Type of payment instrument, such as a credit card or digital wallet. Required 57.0
payerAccountId String ID of the payer’s Salesforce account. The ID is shown in the URL of any record. For example, if the record’s URL is https://na1.lightning.force.com/lightning/r/​Account/001OK000002KF2RYAW/view, the ID is 001OK000002KF2RYAW. Optional 61.0
shippingAddress Address Input Shipping address of the payment intent. Optional 59.0
sourceObject​Ids String[] A list of cart or checkout IDs that indicates what the payment was made for. Required 57.0
useManual​Capture Boolean Indicates whether to use manual capture of a payment (true) or not (false). Optional 58.0