Reputation: 10548
I'm testing my website payment solution with Paypal Express Checkout, but whenever the customer is taken to the PayPal payment page (in the paypal sandbox), the page displays in English. How can I control what language is displayed?
On my website I have a language selector and so I do have access to the ISO code of the current language being used on my site.
Upvotes: 4
Views: 11649
Reputation: 10110
According to the documentation from PayPal on SetExpressCheckout
, one should be able to set the LOCALECODE
to a 5 character locale code, for example da_DK
. However, I simply couldn't make it work. No matter what 5 character locale code I tried (And I only tried the ones in the PayPal documentation of course), the PayPal UI defaulted to english. But the 2 character locale codes worked.
The solution is not to use the 5 character locales as specified in the documentation, but instead use the 2 character locales mentioned here. When I did that, it worked.
Upvotes: 0
Reputation: 8191
If you are using Express Checkout, you will want to set the LOCALECODE
to a four-character country code supported by PayPal in order to change the language on the PayPal login page.
Example
CURRENCYCODE=EUR&
RETURNURL=https://www.anycompany.com/orderprocessing/orderreview.html&
CANCELURL=https://www.anycompany.com/orderprocessing/shippinginfo.html&
LOCALECODE=fr_FR
The Paypal Country codes as been updated to 5-character (SetExpressCheckout):
The following 5-character codes are also supported for languages in specific countries:
See this link for updated information on the subject!
Upvotes: 7