如何控制 Paypal Sandbox 中显示的语言?
我正在使用 Paypal Express Checkout 测试我的网站支付解决方案,但每当客户进入 PayPal 支付页面(在 paypal 沙箱中)时,该页面都会以英文显示。如何控制显示的语言?
在我的网站上,我有一个语言选择器,因此我可以访问我的网站上当前使用的语言的 ISO 代码。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 Express Checkout,则需要将
LOCALECODE
设置为 PayPal 支持的四字符国家/地区代码,以便更改 PayPal 登录页面上的语言。示例
已编辑 - 2012-05-26
Paypal 国家/地区代码为已更新为 5 个字符(SetExpressCheckout):
特定国家/地区的语言还支持以下 5 字符代码:
请参阅<一href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetExpressCheckout" rel="noreferrer">此链接了解有关该主题的最新信息!
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!
根据 PayPal 的文档
SetExpressCheckout
,应该能够将LOCALECODE
设置为 5 个字符的区域设置代码,例如da_DK
。然而,我根本无法让它发挥作用。无论我尝试什么 5 个字符的区域设置代码(当然,我只尝试了 PayPal 文档中的代码),PayPal 用户界面默认为英语。但 2 个字符的区域设置代码有效。解决方案不是使用文档中指定的 5 个字符区域设置,而是使用提到的 2 个字符区域设置 此处。当我这样做时,它起作用了。
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.