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.
According to the documentation from PayPal on
SetExpressCheckout
, one should be able to set theLOCALECODE
to a 5 character locale code, for exampleda_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.
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
EDITED - 2012-05-26
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!