Newer Version Available
Checkout Payment Input
- Root XML tag
- <checkoutPaymentInput>
- JSON example for authorized payment
-
1{ 2 "paymentToken":"cardPaymentMethodId", 3 "requestType":"Auth", 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 client request
-
1{ 2 "requestType":"ClientRequest", 3 "paymentsData": '{"customData":"senttoyourapex"}' 4 } - 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. 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 ClientRequest, the paymentToken property isn’t required.
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 Payments data for a custom checkout. Use this property to pass custom data (as valid JSON). This property is allowed only when requestType is ClientRequest. Optional 55.0 requestType String Type of payment request. Valid values are: - Auth—Payment authorization request.
- ClientRequest—Custom client payment 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