Paypal 托管语言错误。基于 'country' 而不是 Paypal Express 按钮的 'lc'

标签 paypal hosted

  1. 使用带有 lc="GB"的 templateD 选项创建一个 paypal 托管表单,但发货国家/地区不是英语(如 NL)
  2. 当系统提供使用 Paypal Express 或信用卡付款的选项时,请选择 Paypal Express 选项。
  3. 当重定向到 paypal 时,paypal 登录表单以荷兰语显示,因为它使用的是“country”值而不是“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”,它应该强制“English”。问题是一个不懂荷兰语的人可能想把东西寄给另一个国家的 friend ,但看不懂付款方式。至少它应该使用 billing_country 值,但最终使用 lc 代码,因为这是它的预期用途。

最佳答案

我发现 PayPal 忽略了 lcbilling_country 字段。

在我的例子中,两者都设置为 CA,但在到达 PayPal 时,它总是显示 United States 作为账单国家,而不是 Canada.

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

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

设置此变量后,PayPal 不再忽略 billing_country 字段。

关于 Paypal 托管语言错误。基于 'country' 而不是 Paypal Express 按钮的 'lc',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45089885/

相关文章:

paypal - 自适应支付部分退款功能

PayPal Checkout 使用默认设置的 PayPal 帐户付款

php - 我的 Paypal 停止接受付款并给我错误

Paypal payflow link setup no "PayPal Express Checkout"feildset

azure-devops - 在管道构建期间获取 sql server (express) azure devops

PayPal 托管结账页面未显示 paypal 选项

android - native Checkout Paypal 按钮未在 android 中为发布 apk 呈现

active-directory - 如何在 "hosted solution"中使用 Active Directory?

mysql - AppleScript 可以与托管 MySQL 数据库对话吗

asp.net - 使用 Microsoft Azure AD 身份验证托管的 Blazor Webassemble asp.net