html - 无法在paypal中修改国家

标签 html paypal payment

我正在我的网站上实现 Paypal 付款,但结账时国家/地区没有改变。请在下面查看我的代码:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">

    <div class="form-group">
        <input type="hidden" name="address_override" value="1">
        <input type="hidden" name="address1" value="Shipping Address">
        <input type="hidden" name="address2" value="Building name and office number">


        <input type="hidden" name="city" value="Tokyo">
        <input type="hidden" name="zip" value="2024">
        <input type="hidden" name="country" value="JP">
    </div>
</form>

最佳答案

如果您要创建托管按钮,则需要在 PayPal 托管按钮页面上设置您要设置的变量。

您可以修改托管按钮并尝试添加它。供您引用的链接:

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/buy_now_step_1/ https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

关于html - 无法在paypal中修改国家,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50561548/

相关文章:

html - 使用自定义网络播放器播放 YouTube 视频

html - IE 上的背景大小需要比其他浏览器大

html - Bootstrap 布局 : getting two scrollbars

Magento 1.9.1 PayPal Express 评论页面为空

Paypal 沙盒错误 : Cookies are blocked

payment-gateway - 有免费的信用卡api或支付网关吗?

html - 从 R 中的 HTML 页面中提取文本

paypal - Braintree API 更新订阅

php - Paypal IPN 和 wordpress 失败

php - Paypal 返回 true 或 false