On This Page
REST API
Client-Side Setup
Use the
Unified Checkout
JavaScript library to add the payment interface to
your e‑commerce site. It has two primary components:- The button widget, which lists the payment methods available to the customer.
- The payment acceptance page, which captures payment information from the cardholder. You can set up the payment acceptance page to be integrated with your webpage or added as a sidebar.
Follow these steps to set up the client:
- Load the JavaScript library.
- Initialize the accept object, the capture context JWT. For information JSON Web Tokens, see JSON Web Tokens.
- Initialize the unified payment object with optional parameters.
- Show the button list or payment acceptance page or both.
The response to these interactions is a transient token that you use to retrieve the
payment information captured by the UI.