How can I control the language displayed in the Paypal sandbox?

I am testing a payment solution for my site using Paypal Express Checkout, but whenever a client goes to the PayPal payment page (in the paypal sandbox), the page is displayed in English. How can I control which language is displayed?

I have a language selector on my website, and therefore I have access to the ISO code of the current language used on my website.

+4
source share
2 answers

If you use Express Checkout, you need to install LOCALECODE in the four-digit 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 

EDITED - 2012-05-26

Paypal country code updated to 5 characters (SetExpressCheckout) :

The following 5-character codes are also supported for languages ​​in certain countries:

  • da_DK - Danish (only for Denmark)
  • he_IL - Hebrew (all)
  • id_ID - Indonesian (Indonesia only)
  • jp_JP - Japanese (Japan only)
  • no_NO - Norwegian (Norway only)
  • pt_BR - Brazilian Portuguese (Portugal and Brazil only)
  • ru_RU - Russian (only for Lithuania, Latvia and Ukraine)
  • sv_SE - Swedish (Sweden only)
  • th_TH - Thai (Thailand only)
  • tr_TR - Turkish (Turkey only)
  • zh_CN - Simplified Chinese (China only)
  • zh_HK - Traditional Chinese (Hong Kong only)
  • zh_TW - Traditional Chinese (Taiwan only)

See this link for updated information on this!

+7
source

According to the documentation from PayPal on SetExpressCheckout , you should set LOCALECODE to a 5-digit language code, for example da_DK . However, I just couldn't get it to work. No matter what 5-digit language code I tried (and I only tried them in the PayPal documentation, of course), the PayPal user interface was in English by default. But language codes with 2 characters worked.
The solution is to not use 5-digit locales as indicated in the documentation, but instead use the 2 character locales mentioned here . When I did this, it worked.

0
source

Source: https://habr.com/ru/post/1389216/


All Articles