使用 Paypal IPN 时如何将收货地址发送到 Paypal

时间:2023-01-18
本文介绍了使用 Paypal IPN 时如何将收货地址发送到 Paypal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

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

I am trying to integrate Paypal IPN to an application which I am developing. And I am stuck in a problem which is regarding shipping address. I need to know how to send the address variables to Paypal, as a request so that User can see that address on paypal. Please tell me the variables which should be sent to paypal, which paypal treats as shipping address(or delivery address).

提前致谢.

推荐答案

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

To send the shipping address to PayPal you need to modify your PayPal submit form.

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

Using this will let you to override PayPal stored address:

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

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

And then use this variables to override PayPal stored address:

<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

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

The payer is shown the passed-in address but cannot edit it. No address is shown if the address is invalid, such as missing required fields like country, or if the address is not included at all.

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

这篇关于使用 Paypal IPN 时如何将收货地址发送到 Paypal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:cakePHP 使用 post 数据进行分页,无需会话、序列化或 post 即可获取 下一篇:CakePHP 自定义验证与错误消息中的变量

相关文章

最新文章