Session setLocale()

setLocale()

Allows you to set the language for the payment page in a hosted session. When you change the language from the dropdown it will update the locale and call POI if the card number is present.


Usage Copied to clipboard

PaymentSession.setLocale('en_US', [scope])


Example Copied to clipboard

PaymentSession.setLocale('en_US', [scope]);

Arguments Copied to clipboard

language Copied to clipboard String

Specifies the configuration for the Hosted Session interaction.

scope Copied to clipboard String

The optional named instance of a card payment data set within a session. See Multiple Hosted Sessions for more information.


Return Value Copied to clipboard

None