【问题标题】:How to send Shipping address to Paypal, when using Paypal IPN使用 Paypal IPN 时如何将送货地址发送到 Paypal
【发布时间】:2011-08-09 16:30:30
【问题描述】:

我正在尝试将 Paypal IPN 集成到我正在开发的应用程序中。我陷入了一个关于送货地址的问题。 我需要知道如何将地址变量作为请求发送到 Paypal,以便用户可以在 paypal 上看到该地址。请告诉我应该发送到贝宝的变量,贝宝将其视为送货地址(或送货地址)。

提前致谢。

【问题讨论】:

  • 嗨 Nishant,this 回答你的问题了吗?我很好奇!

标签: php cakephp paypal-ipn shipping


【解决方案1】:

要将送货地址发送到 PayPal,您需要修改您的 PayPal 提交表单。

使用它可以让您覆盖 PayPal 存储地址:

<input type="hidden" name="address_override" value="1">

然后用这个变量覆盖PayPal存储地址:

<input type="hidden" name="first_name" value="Spendthrift">
<input type="hidden" name="last_name" value="Richer">
<input type="hidden" name="address1" value="123 Money St">
<input type="hidden" name="city" value="Dollarwood">
<input type="hidden" name="state" value="AB">
<input type="hidden" name="zip" value="4811">
<input type="hidden" name="country" value="CA">

来自PayPal.com

向付款人显示传入的地址,但无法对其进行编辑。如果地址无效(例如缺少国家/地区等必填字段,或者根本不包含地址),则不会显示地址。

以下是参考资料:
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/#id08A6F0T0JQN

【讨论】:

    猜你喜欢
    • 2015-03-04
    • 2021-12-19
    • 2018-06-11
    • 2014-02-11
    • 2021-05-22
    • 2021-08-26
    • 2011-09-23
    • 2014-05-29
    • 1970-01-01
    相关资源
    最近更新 更多