REST API

Capture Context API

The capture context request contains all of the merchant-specific parameters that tell the frontend JavaScript library how to behave within your payment experience.
The capture context is a signed JSON Web Token (JWT) containing this information:
  • Merchant-specific parameters: manages the customer payment experience for the current payment transaction.
  • A one-time public key: secures the information flow during the current payment transaction.
For information on JSON Web Tokens, see JSON Web Tokens.
The capture context is signed with long‑lasting keys so that its authenticity can be validated.
You can define the payment cards and other application features in the capture context. Use the
allowedCardNetworks
field to define the card types. Available card networks:
  • American Express
  • Diners Club
  • Discover
  • JCB
  • Mastercard
  • Visa
Use the
allowedPaymentTypes
field to define the digital payment methods.
For more information on enabling and managing these digital payment methods, see these topics:

Endpoint

Production:
POST
https://api.cybersource.com
/up/v1/capture-contexts
Test:
POST
https://apitest.cybersource.com
/up/v1/capture-contexts