Customize payment UI
How it works
There are two default themes available for the payment UI: light and dark. To switch between them without using the customizer, pass the theme ID in the settings.ui.theme parameter when getting the token:
- for the light theme (default) —
6a54b1b3c01b9c25e567a065 - for the dark theme —
6a54b174c01b9c25e5679fa2
To match the payment UI with the game design, you can create a custom theme and configure the following characteristics:
- colors of UI elements
- font size
- border width and corner radius of UI elements
- displaying a game logo
You can use a custom theme as the default one for all your projects in Publisher Account. If you want to specify different themes for individual games, pass these settings in the token.
To match the payment UI with the game design, you can create a custom theme and configure the following characteristics:
- colors of UI elements
- font size
- border width and corner radius of UI elements
- displaying a game logo
You can use a custom theme as the default theme for all your projects in the account. If you want to specify different themes for individual games, pass these settings in the token.
Configure customization in Publisher Account
To create a customized theme:
- Open your project in Publisher Account and go to the Payments > Payment interface > Pay Station customization section.
Configure customization in account
To create a customized theme:
- Open your project in the account and go to the Payments > Payment interface > Pay Station customization section.
Configure customization in account
To create a customized theme:
- Open your project in the account and go to the Payments > Payment interface > Pay Station customization section.
Configure customization in account
To create a customized theme:
- Open your project in the account and go to the Payments > Payment interface > Pay Station customization section.
Configure customization in account
To create a customized theme:
- Open your project in the account and go to the Payments > Payment interface > Pay Station customization section.
Configure customization in account
To create a customized theme:
- Open your project in the account and go to the Payments > Payment interface > Pay Station customization section.
- Click Create new theme.
- Click the pencil icon to change the theme name.
- In the Preset drop-down list, you can select a base theme. If you updated it and didn’t publish the theme, your changes will be lost when switching between presets.
- To change the colors of UI elements, go to the Colors tab. You can change the color palette for surfaces, texts, and controls, as well as colors that appear in status notifications.
When you change theme colors, the contrast is checked automatically. If the contrast is low, you will see a notification with the Check button. Click it to go to the Components section, where all UI elements are displayed. Review their appearance and change the colors of the elements with insufficient contrast.
- To set the font and its size, go to the Typography tab.
Use the corresponding fields to change the font size of the following UI elements:
| Field | UI element |
|---|---|
| Title 1 | Heading on the payment status page. |
| Title 2 | Total amount value. |
| Title 3 | Section headings (e.g., Payment via card). |
| Body L |
|
| Body M |
|
| Minor text |
|
To configure the border width and corner radius of UI elements, go to the Borders tab and make changes.
To see how the game logo appears in the payment UI, in the Preview section, check the Show logo box. To set up the display of a game logo in the payment UI, pass the necessary parameters in the token.
- To see how a theme appears on mobile and desktop versions of the payment UI, switch between tabs in the Preview section.
- To see different states of the payment UI, switch between the Payment by card, Payment methods, Payment status: successful, and Payment status: failed tabs.
- To change the image on the payment status page, go to the Payment status: successful or Payment status: failed tab, click Upload, and select the required file from your device.
Maximum file size: 5 MB.
Supported formats: JPG/JPEG, PNG, GIF, APNG.
Xsolla images are used for payment statuses by default.
Example:

- Click Publish.
- To apply this theme to all your projects in Publisher Account, turn on the Set as default toggle in the modal window that opens. It will not affect projects where the theme is passed in the token.
- To apply this theme to all your projects in the account, turn on the Set as default toggle in the modal window that opens. It will not affect projects where the theme is passed in the token.
- To apply this theme to all your projects in the account, turn on the Set as default toggle in the modal window that opens. It will not affect projects where the theme is passed in the token.
- To apply this theme to all your projects in the account, turn on the Set as default toggle in the modal window that opens. It will not affect projects where the theme is passed in the token.
- To apply this theme to all your projects in the account, turn on the Set as default toggle in the modal window that opens. It will not affect projects where the theme is passed in the token.
- To apply this theme to all your projects in the account, turn on the Set as default toggle in the modal window that opens. It will not affect projects where the theme is passed in the token.
- Click Publish.
On the UI theme tab, when you click ••• in the block of a particular theme, the following quick actions are available:
- Customize — open the customizer to make changes.
- Edit — change a theme name and turn on the Set as default toggle.
- Duplicate — copy a theme to create a new one based on it.
- Delete theme.
Configure customization via API
Configure displaying of payment methods
To configure how payment methods are displayed when opening the payment UI, you can pass the following parameters in the token:
- is_payment_methods_list_mode allows you to display the list of payment methods available in the user’s country when opening the payment UI.

settings.ui.gp_quick_payment_button allows you to configure display of the Google Pay payment method in the payment UI. This parameter can have the following values:
true— in this case, the button for quick payment via Google Pay is displayed at the top of the payment UI, regardless of the user’s device and browser.
settings.ui.alternative_first_screen allows you to configure an alternative view of the payment UI screen when opened. This parameter can have the following values:
apple-pay— in this case, the user sees the Apple Pay button as the primary payment option along with a link to the list of other payment methods. This logic doesn’t apply to Android devices.
Pass custom UI theme settings in token
To apply custom settings to a particular game, pass the ID of the published custom theme in the settings.ui.theme parameter when creating the token.
You can find the theme ID:
- In the list of all themes on the UI theme tab.
- In the customizer, under the theme name.
Displaying a game logo
To display your game’s logo in the payment UI:
- Open your project in Publisher Account and upload an image in the Payments > Payment interface > General settings section.
To display your game’s logo in the payment UI:
- Open your project in the account and upload an image in the Payments > Payment interface > General settings section.
To display your game’s logo in the payment UI:
- Open your project in the account and upload an image in the Payments > Payment interface > General settings section.
To display your game’s logo in the payment UI:
- Open your project in the account and upload an image in the Payments > Payment interface > General settings section.
To display your game’s logo in the payment UI:
- Open your project in the account and upload an image in the Payments > Payment interface > General settings section.
To display your game’s logo in the payment UI:
- Open your project in the account and upload an image in the Payments > Payment interface > General settings section.
Supported formats: JPEG, PNG, SVG.
- In the request to create a token, pass
truein thesettings.ui.desktop.header.is_visibleandsettings.ui.desktop.header.visible_logoparameters. Depending on your integration scenario, you can call the server-side or client-side method for creating a token.
Example of displaying a game logo in the payment UI:
Found a typo or other text error? Select the text and press Ctrl+Enter.