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

How to send Shipping address to Paypal, when using Paypal IPN(使用 Paypal IPN 时如何将收货地址发送到 Paypal)
本文介绍了使用 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Codeigniter htaccess to remove index.php and www(Codeigniter htaccess 删除 index.php 和 www)
htaccess mod_rewrite part of url to GET variable(htaccess mod_rewrite url 的一部分到 GET 变量)
Replacing a querystring parameter value using mod_rewrite(使用 mod_rewrite 替换查询字符串参数值)
.htaccess in subdirectory #39;overriding#39; parent htaccess(子目录“覆盖父 htaccess 中的 .htaccess)
How to rewrite SEO friendly url#39;s like stackoverflow(如何像stackoverflow一样重写SEO友好的url)
Is it okay to have a very long .htaccess file?(有一个很长的 .htaccess 文件可以吗?)