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

一世执手 提交于 2019-12-07 09:45:51

问题


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.


回答1:


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
  • Changing the Language on the PayPal Login Page
  • SetExpressCheckout Request Parameters

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!




回答2:


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.



来源:https://stackoverflow.com/questions/8723419/how-can-i-control-the-language-displayed-in-the-paypal-sandbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!