How can I control the language displayed in the Pa

2019-05-08 01:05发布

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.

2条回答
老娘就宠你
2楼-- · 2019-05-08 01:37

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.

查看更多
够拽才男人
3楼-- · 2019-05-08 01:53

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

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:

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

See this link for updated information on the subject!

查看更多
登录 后发表回答