0

I would like to know if it is possible to config the payment method name (in adyen-checkout__payment-method__header) based on the locale.

eg: Instead of "credit card", payment method name shows "carte bancaire" if locale is "fr_FR". Thanks!

https://i.stack.imgur.com/FOeMP.png

ALP
  • 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Nov 09 '21 at 02:50

1 Answers1

0

The Adyen Drop-In and components do support localization, [as described here].1.

You would have to pass the locale in the configuration object when initializing the Drop-in.

This is how it looks like for French :

const configuration = {
    locale: "fr-FR",
    ...
};

Finding out which locale to use may depend on your implementation, user choices or browser settings. Here is an answer with more information about this.

If needed, you can also decide to customize a given localization, the procedure is described here.

Dharman
  • 30,962
  • 25
  • 85
  • 135
jlengrand
  • 12,152
  • 14
  • 57
  • 87