Set locale for dynamic pay later button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I tried setting the locale like this in the src but the button doesnt show up at all:
<script
src="https://www.paypal.com/sdk/js?client-id=myid123&locale=en_EN¤cy=EUR&components=messages"
data-namespace="PayPalSDK">
</script>
<div id="paypal_installment_message"
data-pp-message
data-pp-style-layout="flex"
data-pp-style-ratio="8x1"
data-pp-style-color="white-no-border"
data-pp-amount="{{ paypal_price }}">
</div>
Any help appreciated
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tried changing the locale to en_US and de_DE but the button stays in German no matter what. Using a VPN or different browser language doesnt change anything. How can I force the button to display in another language?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same problem,
As you indicate, adding the locale=fr_FR parameter to the sdk url does not show the text in French. I've also tried any tag I could think of on the element but to no avail:
<div
data-pp-message
data-pp-country-x="fr"
data-pp-content-country="fr"
data-pp-locale="fr"
data-pp-localecode="fr_FR"
data-pp-locale-code="fr_FR"
data-pp-style-layout="text"
data-pp-style-logo-type="inline"
data-pp-style-text-color="black"
data-pp-amount="1000">
</div>
I understand that there should be some option to select the language in which the text appears. At least on this page:
If the "country.x" parameter is changed to another, only the text of the pay later message is modified. But I haven't found the way to do it.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Change the button from Sandbox to Production in REST APIs
- What happened to PayPal Buttons?! in PayPal Payments Standard
- How do you dynamically pass an item name through an 'add to cart' button? in Sandbox Environment
- Encrypted subscription button has stopped working in NVP/SOAP APIs
- Payment not automatically being captured, funds not transferred in Sandbox Environment