Paypal托管语言错误.基于“国家"而不是"Paypal Express"按钮的"lc" [英] Paypal Hosted language bug. Based on 'country' instead of 'lc' for Paypal Express button

查看:98
本文介绍了Paypal托管语言错误.基于“国家"而不是"Paypal Express"按钮的"lc"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 使用带有lc ="GB"的templateD选项创建贝宝托管表单,但运送国家/地区使用英语以外的其他语言(例如NL)
  2. 在被赋予使用Paypal Express或信用卡付款的选项时,请选择Paypal Express选项.
  3. 当重定向到贝宝时,贝宝登录表单显示在荷兰语中,因为它使用的是国家"值而不是"lc"值.我已通过在国家/地区值中强制使用"GB"来确认这一点.

这是html格式:

<form action="https://securepayments.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess" method="post" id="checkout-form">
    <input type="hidden" name="cmd" value="_hosted-payment">
    <input type="hidden" name="upload" value="1">
    <input type="hidden" name="shipping" value="4.13">
    <input type="hidden" name="tax" value="0.83">
    <input type="hidden" name="subtotal" value="22.98">
    <input type="hidden" name="business" value="xxx@xxx.com">
    <input type="hidden" name="currency_code" value="GBP">
    <input type="hidden" name="showShippingAddress" value="true">
    <input type="hidden" name="first_name" value="test">
    <input type="hidden" name="last_name" value="test">
    <input type="hidden" name="address1" value="123 Test">
    <input type="hidden" name="address2" value="">
    <input type="hidden" name="city" value="Laren">
    <input type="hidden" name="zip" value="1251TM">
    <input type="hidden" name="country" value="NL">
    <input type="hidden" name="state" value="Noord Holland">
    <input type="hidden" name="night_phone_b" value="252525">
    <input type="hidden" name="billing_first_name" value="test">
    <input type="hidden" name="billing_last_name" value="test">
    <input type="hidden" name="billing_address1" value="123 UK Street, Suite UK1">
    <input type="hidden" name="billing_address2" value="">
    <input type="hidden" name="billing_city" value="Aberdeen">
    <input type="hidden" name="billing_zip" value="AB10">
    <input type="hidden" name="billing_country" value="GB">
    <input type="hidden" name="logoImage" value="https://www.specialistsupplements.com/image/data/specialist-supplements-logo.png">
    <input type="hidden" name="billing_state" value="Aberdeen">
    <input type="hidden" name="showBillingPhone" value="false">
    <input type="hidden" name="showHostedThankyouPage" value="false">
    <input type="hidden" name="buyer_email" value="test@test.com">
    <input type="hidden" name="invoice" value="123">
    <input type="hidden" name="lc" value="GB">
    <input type="hidden" name="charset" value="utf-8">
    <input type="hidden" name="address_override" value="false">
    <input type="hidden" name="paymentaction" value="sale">
    <input type="hidden" name="return" value="xxxx">
    <input type="hidden" name="notify_url" value="xxxx">
    <input type="hidden" name="cancel_return" value="xxxx">
    <input type="hidden" name="custom" value="123">
    <input type="hidden" name="template" value="templateD">
</form>

此代码中的"lc"代码为"GB",应强制使用英语".问题是一个不懂荷兰语的人可能想将商品发送给另一个国家的朋友,而无法阅读付款方式.至少应该使用billing_country值,但最终应使用lc代码,因为这是其预期用途.

The "lc" code in this is "GB" which is what should force "English". The problem is a person who does not read dutch may want to send an item to a friend in another country and will not be able to read the payment options. At the very least it should be using the billing_country value, but ultimately use the lc code as that is its intended use.

推荐答案

我发现PayPal忽略了lcbilling_country字段.

I found that PayPal was ignoring the lc and billing_country fields.

在我的情况下,两者均设置为CA,但是到达PayPal时,计费国家/地区始终显示美国,而不是加拿大.

In my case, both were set to CA, but upon arrival at PayPal, it would always show United States for the billing country, not Canada.

我找到的解决方法是设置:

The workaround I found is to set:

<input name="landing_page" value="billing" type="hidden">

设置此变量后,贝宝(PayPal)停止忽略billing_country字段.

After I set this variable, PayPal stopped ignoring the billing_country field.

这篇关于Paypal托管语言错误.基于“国家"而不是"Paypal Express"按钮的"lc"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆