Sale API Payment Method Input
- JSON example with cardPaymentMethod
-
{ "paymentMethod": { "address": { "city": "Lisieux", "companyName": "Entreprise Deux", "country": "France", "postalcode": "14100", "state": "Basse-Normandie", "street": "12 Rue de La Montagne" }, "saveForFuture": "true", "cardPaymentMethod": { "cardHolderName": "Yannick Martin", "expiryMonth": "08", "expiryYear": "2025", "cardNumber": "", "cvv": "737", "cardCategory": "CreditCard", "cardType": "MASTERCARD" } } }
- JSON example with ID of Payment Method Object
-
{ "paymentMethod": { "id": "03OOG0000002l402AA" } }
- 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. 54.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. 54.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.
54.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 use an ID, don’t use the saveForFuture property because a validation error occurs. 54.0