使用 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)