The ui_config object allows you to customize the look and feel of the Hosted Checkout page. You can set these fields as a default for your business using the Set Business Configuration endpoint, or override them for a single session in the Create a Payment Session request.Documentation Index
Fetch the complete documentation index at: https://docs.tonder.io/llms.txt
Use this file to discover all available pages before exploring further.
All color fields accept 6-digit hex codes (e.g., #FFFFFF).
Example ui_config Object
branding
Colors related to your brand, used for buttons and highlights.| Field | Type | Description |
|---|---|---|
| brand_color | string | Main brand color. Used for the submit button. |
| brand_color_text | string | Text color to display on top of brand_color. |
| secondary_brand_color | string | Secondary color. Used for links or minor buttons. |
| secondary_brand_color_text | string | Text color to display on top of secondary_brand_color. |
theme
General theme of the checkout page, including shapes and background colors.| Field | Type | Description |
|---|---|---|
| shapes | string | Sets the border radius for buttons and form fields. Options: sharp (0px) or rounded (default, e.g., 8px). |
| background_color | string | The main background color of the page. |
| form_background_color | string | The background color of the payment form container. |
| text_color | string | The primary color for all text labels. |
| error_color | string | The color used for form validation errors. |
labels
Custom text for form fields and buttons.| Field | Type | Description |
|---|---|---|
| submit_button | string | Text for the main payment submission button (e.g., “Pay”, “Complete Order”). |
| card_number | string | Placeholder label for the card number field. |
| expiry_date | string | Placeholder label for the card expiration date field. |
| cvc | string | Placeholder label for the CVC/CVV field. |

