Newer Version Available
Checkout Payment Input
- Root XML tag
- <checkoutPaymentInput>
- JSON example for authorized payment
-
1{ 2 "requestType":"Auth", 3 "paymentToken":"cardPaymentMethodId", 4 "billingAddress":{ 5 "name":"John Doe", 6 "street":"123 Acme Drive", 7 "city":"Los Angeles", 8 "region":"CA", 9 "country":"US", 10 "postalCode":"90001" 11 } 12} - JSON example for post authorized payment
-
1{ 2 "requestType":"PostAuth", 3 "paymentToken": 'pi_0swefj329r4ljsdfk', 4 "billingAddress":{ 5 "name":"John Doe", 6 "street":"123 Acme Drive", 7 "city":"Los Angeles", 8 "region":"CA", 9 "country":"US", 10 "postalCode":"90001" 11 } 12 } - JSON example for simple purchase order
-
1{ 2 "requestType": "SimplePurchaseOrder", 3 "paymentToken": "000348957393223", 4 "billingAddress":{ 5 "name":"John Doe", 6 "street":"123 Acme Drive", 7 "city":"Los Angeles", 8 "region":"CA", 9 "country":"US", 10 "postalCode":"90001" 11 } 12} - Properties
-
Name Type Description Required or Optional Available Version billingAddress Checkout Address Input Billing address for the checkout. Don't include a value for shipToPhoneNumber on the Checkout Address Input. This field is ingored in the payment request. Optional 55.0 paymentToken String Payment token value has a different meaning depending on the request type. If the request type is Auth, the value is a card payment method ID.
If the request type is SimplePurchaseOrder, the value is a purchase order number.
If the request type is PostAuth, the value is a string that identifies the payment transaction so it can be validated by the payment gateway adapter’s PostAuth handler.
Required if requestType is Auth, PostAuth, or SimplePurchaseOrder 55.0 paymentsData String Additional data from a payment request for custom checkout implementations. Supports up to four key-value pairs. paymentsData is only applicable to requests with a requestType of Auth or PostAuth. Simple purchase orders don’t support paymentsData. Optional 55.0 requestType String Type of payment request. Valid values are: - Auth—Payment authorization request.
- PostAuth— Record a payment transaction that happened outside of the Salesforce platform
- SimplePurchaseOrder— Use a purchase order as a form of payment
Required 55.0