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.
This is a checkout page example with the Elements SDK.
Configuration
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
Example of the SDK's "pay" callback payload (sets the payment for commit)
Customization
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:
SensePassFrontEndSDK.config({
// ...,
theme: { // optional theme for various packages
/** angular material provides extensive documentation on customizing their theme
* you can find it at: https://material.angular.io/guide/theming */
material: "https://pay.sandbox.sensepass.com/publicAssets/themes/custom-sample-material.theme.css", // sample for a customized material theme
sensepassEcommerce: "https://pay.sandbox.sensepass.com/publicAssets/themes/custom-sample-ecommerce.theme.css", // sample for a customized sensepass theme
paymentMethodGrid: "horizontal", // horizontal | vertical style of the payment options
config: {} // a configuration object for specific payment methods text/animations
}
})