Set locale for dynamic pay later button?

Shop2000
Contributor
Contributor

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&currency=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

 

Login to Me Too
2 REPLIES 2

Shop2000
Contributor
Contributor

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

Login to Me Too

avanzaSol
New Community Member

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:

 

https://www.paypal.com/ppcredit/messaging/customize?layout=text&device=message&logo-type=inline&text...

 

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.

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.