Capture Context
The capture context request is a signed JSON Web Token
(JWT) that includes all of the merchant-specific parameters. This request tells the
frontend JavaScript library how to behave within your payment experience. For
information on JSON Web Tokens, see JSON Web Tokens.
You can define the payment cards and digital payments that you want to accept in the
capture context. Use the
allowedCardNetworks
field to define the
card types.Available card networks for card entry:
- American Express
- China UnionPay
- Diners Club
- Discover
- JCB
- Mastercard
- Visa
IMPORTANT
Click to Pay
supports American Express,
Mastercard, and Visa for saved cards.IMPORTANT
Unified Checkout Integration
does not process transactions
for cards that do not have a card verification number (CVN) and expiration date.
Most China UnionPay debit and credit cards issued before 2016 do not have a CVN
and expiration date. Use the
allowedPaymentTypes
field to define the digital payment
methods.Example:
{ "targetOrigins" : [ "https://www.test.com" ], "clientVersion" : "0.19", "allowedCardNetworks" : [ "VISA", "MASTERCARD", "AMEX" ], "allowedPaymentTypes" : [ "PANENTRY", "CLICKTOPAY", "GOOGLEPAY" ], "country" : "US", "locale" : "en_US", "captureMandate" : { "billingType" : "FULL", "requestEmail" : true, "requestPhone" : true, "requestShipping" : true, "shipToCountries" : [ "US", "GB" ], "showAcceptedNetworkIcons" : true }, "orderInformation" : { "amountDetails" : { "totalAmount" : "1.01", "currency" : "USD" }, } }
This diagram shows how elements of the capture context request appear in the card entry
form.
For more information on requesting the capture context, see Capture Context API.