Elements SDK

Complete your checkout process with a list of payment options. From easy-to-use ones like Apple Pay, Google Pay and PayPal (etc), to buy-now-pay-later ones like Klarna, Sezzle, Affirm and more.

Quick demo

Check out our demo page to see the flow in action.

circle-info

This is a checkout page example with the Elements SDK.


Configuration

circle-info

You can copy-paste the (relevant) following HTML code to your checkout page to get going.

  • Note that the current widget configuration is set up to use the mock client-id - and replace it with yours.


Payment Data

circle-info

Example of the SDK's "pay" callback payload (sets the payment for commit)

Customization

circle-info

This code sample demonstrates how to customize the appearance of the Elements Widget's payment buttons/elements. Set this object in our SDK configuration to apply your custom theme.

Download and edit the following themes you wish to style on your own:

  1. Save your themes in a hosting site of your choosing and set their URL in the config JSON.

  2. Use the SDK Theme Config Modelarrow-up-right to set you custom text and other UI configurations.

Last updated

Was this helpful?