How to Apply Customisations
You apply customisations by passingstyles, 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
| Property | Description |
|---|---|
inputStyles | Controls the appearance of the card number, expiration date, and CVV fields |
labelStyles | Controls the appearance of the labels above each input field |
errorTextStyles | Controls the appearance of validation error messages |
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:| Property | Description |
|---|---|
labels | Provide an object with new text for the input labels (e.g., nameLabel, cardLabel) |
placeholders | Provide an object with new placeholder text for the inputs (e.g., namePlaceholder, cardPlaceholder) |
Style State Properties
The style properties support different states for enhanced user experience:| Property | Type | Description |
|---|---|---|
inputStyles.base | object | Default styles for input fields |
inputStyles.invalid | object | Styles applied when input validation fails |
inputStyles.complete | object | Styles applied when input is valid and complete |
labelStyles.base | object | Default styles for field labels |
errorTextStyles.base | object | Default styles for error messages |
global | object | Global CSS imports and styles |
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:- Learn how to make a payment using the JS Inline SDK.
- Explore the available SDK methods for payment processing.

