如何发送运费地址到Paypal,当使用Paypal IPN时 [英] How to send Shipping address to Paypal, when using Paypal IPN

查看:371
本文介绍了如何发送运费地址到Paypal,当使用Paypal IPN时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Paypal IPN集成到我正在开发的应用程序中。我被困在一个关于运输地址的问题。
我需要知道如何发送地址变量到Paypal,作为一个请求,使用户可以看到paypal的地址。请告诉我应该发送到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存储地址

<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


付款人显示了传入的地址,但不能编辑它。

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.



Here are the references:
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/#id08A6F0T0JQN

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

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