Skip to main content
This guide covers how to customise the Tonder JS Inline SDK to match your website’s design and branding requirements. Whether you’re looking to integrate Tonder’s payment processing into your existing design system or create a cohesive checkout experience, this documentation will help you understand your customisation options and implementation approaches. The Tonder JS SDK allows you to customise the checkout’s appearance to match your website’s branding. You can customise styles for input fields, labels, and error messages, as well as the text for labels and placeholders.

How to Apply Customisations

You apply customisations by passing styles, labels, and placeholders objects to the InlineCheckout constructor during initialisation.

Customisation Properties

The customisation object supports both styling and text customisation options. The styles object is structured to target different elements and their states (e.g., base, complete, invalid).

Style Properties

Text Properties

In addition to styling, you can also customise the text content of labels and placeholders to match your application’s language or terminology:

Style State Properties

The style properties support different states for enhanced user experience:

Example Customisation

Here’s a comprehensive example that demonstrates how to customise both the visual appearance and text content of the checkout interface. This configuration applies a modern design with custom fonts, colours, and terminology.

Next Steps

Now that you understand the customisation options available with the Tonder JS Inline SDK, you’re ready to implement payment processing in your web application. Here are the recommended next steps to get you started: