You can customize the following parts of your checkout experience:
Order of payment methods
We highly recommend that you use dynamic payment method ordering.
If you do not want to rely on dynamic payment method ordering, you can manually configure which payment methods to show based on the shopper's country. This is not recommended and disables dynamic payment method ordering.
(Recommended) Enable dynamic payment method ordering
Dynamic payment method ordering is enabled by default. When enabled, checkout dynamically changes the payment method order based on machine learning insights gathered from current and historical transaction details. The order is optimized based on data such as shopper preferences derived from previous transactions, location, device, and currency.
If dynamic payment method ordering is disabled, or if you want to prioritize a different goal, you can change the settings.
In your Customer Area:
- Go Settings > Checkout settings.
- Select Dynamic ordering.
- Select Activate.
- Select Prioritize cost or Prioritize conversion, depending on your goal.
- Select all or select specific countries/regions for which you want to apply this goal.
- Select Activate now.
Manually configure payment methods
- On the Checkout settings page, select Payment methods.
- Select the country/region that you want to configure and make changes.
Localization settings
You can change the language and customize the localization of the payment form.
Included languages
We include UI localizations for some languages.
To use a language or localization that is not included, create your own.
Change the language
The language of the UI is based on the locale set in the global configuration object that you pass to your instance of AdyenCheckout. If no locale is set, Drop-in uses the locale that corresponds to the shopperLocale value from your /sessions request.
If the locale that you set in the configuration object or the shopperLocale value does not match any of the included locales, Drop-in defaults to en-US (United States English).
Customize the localization
The text displayed for each localization can be customized, allowing you to replace the default text with your custom text.
To customize the text for a localization:
-
On your payments page, create a
translationsobject. -
In the object that you created, specify the locale value that you want to customize.
-
In the object for the locale that you specified, add key-value pairs for the text you want to customize.
The following example shows how to customize the US English (
en-US) translation so that:Key Value deliveryAddressUse Shipping Address instead of the default text (Delivery Address). stateOrProvinceUse State instead of the default text (State or Province). -
To use the customized localization in your payment form, provide the following parameters in the global configuration object:
Parameter name Required Description localeThe localeyou customized in the previous step.translationsThe translationsobject that you created.
Create a custom locale
To use a locale that we do not include, create a custom one.
-
On your payments page, create a
translationsobject. -
In the object that you created, specify the locale value that you want to create. For example, you can use the value nl-BE to create a Belgian Dutch localization
-
In the object for the locale that you created, add key-value pairs for the text you want to customize.
The following example shows a
translationobject for creating a nl-BE localization. -
To use your localization in your payment form, include following parameters in the global configuration object:
Parameter name Required Description localeThe localeyou created in the previous step.translationsThe translationsobject that you created.
Text direction
The default text direction is left-to-right. Text direction is independent from the locale you set in the configuration object. So even if you set the locale to a right-to-left language, like Arabic, you still need to set the text direction.
To change the text direction to right-to-left, use the HTML dir attribute on the parent element for the checkout container.
Custom styling
Drop-in includes a pre-styled payment form. The styling of fonts, colors, layouts, and buttons can be customized using CSS custom properties to match your website and brand.
You can customize elements that are not inside an iFrame, by overriding the CSS property styles:
-
Create a CSS file
override.css, with the CSS variables you want to style: -
Import the
override.cssfile after importing the Adyen library's main CSS file: