Newer Version Available

This content describes an older version of this product. View Latest

Payment Intents Input

Payment intents input consumed to initiate a payment.
JSON example without saved payment method information
1{
2   "amount":8.99,
3    "currencyIsoCode":"USD",
4    "sourceObjectIds":["0a6xx0000000cuvAAA"],
5    "paymentGatewayId":"{{paymentGatewayId}}",
6    "paymentMethodType":"card",
7    "payerAccountId": "001xx000003GYwy"
JSON example with saved payment method information
1{
2  "amount": "250",
3  "currencyIsoCode": "USD",
4  "sourceObjectIds": [
5    "001xx000003Gmk3AAC"
6  ],
7  "paymentGatewayId": "0b0xx00000000w5AAA",
8  "paymentMethodType": "us_bank_account",
9  "payerAccountId": "001xx000003GYwy"
10  "paymentMethod": {
11    "referenceOwnerId": "001xx000003Gmk3AAC",
12    "usageType": "OffSession",
13    "isDefault": true
14
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
currencyIsoCode 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
isShippingApplicable 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
paymentGatewayId 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
paymentMethodType 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
sourceObjectIds String[] A list of cart or checkout IDs that indicates what the payment was made for. Required 57.0
useManualCapture Boolean Indicates whether to use manual capture of a payment (true) or not (false). Optional 58.0