Newer Version Available
Authorization API Payment Method Input
- JSON example with cardPaymentMethod
-
1{ 2 "paymentMethod": { 3 "address": { 4 "city": "San Francisco", 5 "companyName": "Salesforce", 6 "country": "US", 7 "postalcode": "94105", 8 "state": "CA", 9 "street": "123 Main Street" 10 }, 11 "saveForFuture": "true", 12 "cardPaymentMethod": { 13 "cardHolderName": "Mary Smith", 14 "expiryMonth": "03", 15 "expiryYear": "2027", 16 "cardNumber": "4111111111111111", 17 "cvv": "737", 18 "cardCategory": "CreditCard", 19 "cardType": "VISA", 20 "nickName": "Primary credit card" 21 } 22 } 23} - JSON example with ID of Payment Method Object
-
1{ 2 "paymentMethod": { 3 "id": "03OOG0000002l402AA" 4 } 5} - Properties
-
Name Type Description Required or Optional Available Version address Address Input Payment method address. Optional. If you use an ID, don’t use the address property because a validation error occurs. 49.0 cardPaymentMethod Card Payment Method Input Card payment method including customer payment information. Optional. For a successful request, include cardPaymentMethod details or an ID. Don’t use both or an error occurs. 49.0 id String ID of a PaymentMethod or SavedPaymentMethod record that the payment gateway uses to process the payment authorization. The SavedPaymentMethod can be passed only for Salesforce Payments. Optional. For a successful request, include an ID or a cardPaymentMethod. Don’t use both or an error occurs. If you specify an ID don’t use an address or saveForFuture property because a validation error occurs. The address can’t be updated on the paymentMethod object.
49.0 saveForFuture Boolean Indicates whether to save the payment method for future use (true) or not (false). If unspecified, the default value is false. Optional. If you specify an ID, don’t use the saveForFuture property because a validation error occurs. 49.0