On This Page
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. The
request provides authentication, one-time keys, the target origin to the
Unified Checkout
integration in addition to allowed card networks and
payment types. The capture context request includes these elements:- allowedCardNetworks
- allowedPaymentTypes
- clientVersion
- targetOrigin
- completeMandate
Use the
targetOrigins
and the allowedPaymentTypes
fields to define the target origin and the accepted digital payment methods in your capture
context. For example:{ "targetOrigins": [ "https://www.test.com" ], "clientVersion": "0.23", "allowedCardNetworks": [ "VISA", "MASTERCARD", "AMEX" ], "allowedPaymentTypes": [ "CLICKTOPAY" ], "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" } } }
For more information on requesting the capture context, see Capture Context API.