如何控制 Paypal Sandbox 中显示的语言?

发布于 2024-12-24 20:58:46 字数 160 浏览 3 评论 0 原文

我正在使用 Paypal Express Checkout 测试我的网站支付解决方案,但每当客户进入 PayPal 支付页面(在 paypal 沙箱中)时,该页面都会以英文显示。如何控制显示的语言?

在我的网站上,我有一个语言选择器,因此我可以访问我的网站上当前使用的语言的 ISO 代码。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

没企图 2024-12-31 20:58:46

如果您使用 Express Checkout,则需要将 LOCALECODE 设置为 PayPal 支持的四字符国家/地区代码,以便更改 PayPal 登录页面上的语言。

示例

CURRENCYCODE=EUR&
RETURNURL=https://www.anycompany.com/orderprocessing/orderreview.html&
CANCELURL=https://www.anycompany.com/orderprocessing/shippinginfo.html&
LOCALECODE=fr_FR
  • 更改 PayPal 登录页面上的语言
  • <一href="https://www.paypalobjects.com/en_US/ebook/PP_NVPAPI_DeveloperGuide/Appx_fieldreference.html#2829277" rel="noreferrer">SetExpressCheckout 请求参数

已编辑 - 2012-05-26

Paypal 国家/地区代码为已更新为 5 个字符(SetExpressCheckout)

特定国家/地区的语言还支持以下 5 字符代码

  • da_DK – 丹麦语(仅适用于丹麦)
  • he_IL – 希伯来语(全部)
  • id_ID – 印度尼西亚语(仅适用于印度尼西亚)
  • jp_JP – 日语(适用于日本)仅)
  • no_NO – 挪威语(仅适用于挪威)
  • pt_BR – 巴西葡萄牙语(仅适用于葡萄牙和巴西)
  • ru_RU – 俄语(仅适用于立陶宛、拉脱维亚和乌克兰)
  • sv_SE – 瑞典语(仅适用于瑞典)
  • th_TH – 泰语(仅适用于泰国)
  • tr_TR – 土耳其语(仅适用于土耳其)
  • zh_CN – 简体中文(仅适用于中国)
  • zh_HK – 繁体中文(仅适用于香港)
  • zh_TW – 繁体中文(仅适用于台湾)

请参阅<一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

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!

过去的过去 2024-12-31 20:58:46

根据 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 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文