Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/263.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在paypal电子邮件中传递配送地址值?_Php_Payment Gateway_Paypal Ipn - Fatal编程技术网

Php 如何在paypal电子邮件中传递配送地址值?

Php 如何在paypal电子邮件中传递配送地址值?,php,payment-gateway,paypal-ipn,Php,Payment Gateway,Paypal Ipn,这是我第一次开发paypal表单,我对配送地址有问题,如何从客户处获取配送地址,以及如何在电子邮件中(请参见下面的附件)插入paypal的电子邮件 我不知道如何传递配送地址值 主要有10个隐藏变量,我们必须将这些变量传递给PayPal,用于支付相关流程,如下所述(此方法是非常基本的PayPal支付选项,除此之外,PayPal还提供了一些其他支付选项): 您只需将上述隐藏变量发送到PayPal,并根据演示服务器网站路径设置所需的URL 当您使用paypal Sandbox(测试模式)帐户检查

这是我第一次开发paypal表单,我对配送地址有问题,如何从客户处获取配送地址,以及如何在电子邮件中(请参见下面的附件)插入paypal的电子邮件

我不知道如何传递配送地址值


主要有10个隐藏变量,我们必须将这些变量传递给PayPal,用于支付相关流程,如下所述(此方法是非常基本的PayPal支付选项,除此之外,PayPal还提供了一些其他支付选项):


您只需将上述隐藏变量发送到PayPal,并根据演示服务器网站路径设置所需的
URL

当您使用
paypal Sandbox(测试模式)帐户检查时,请记住保持
developer.paypal.com
帐户
登录。这是必须的


谢谢

它在文档中,包含所有其他可以传递给paypal的值。您的意思是,尽管回答下面的问题供您参考,但此图像或此图像不显示。谢谢..但发货地址字段是什么(我的意思是,当有人购买时,我也希望在电子邮件中显示地址)此“地址1”?这里有一个名为
的自定义变量,就像上面隐藏的一样,您可以在其中传递任何自定义信息,PayPal将在传递时返回该值。然而,我认为您不需要将发货地址传递给PayPal,您可以通过会话或使用购物车id或其他方式将该信息存储在数据库中来获取。。PayPal只需要上面的信息就可以用Payment处理事实上…我的观点是在管理电子邮件中有客户的地址…如果你看到上面的图片,我没有客户的地址…嗯,我真的无法在你的问题中看到上面的图片,如果可能的话,请再次发布
<input type="hidden" name="business" value="Merchant Account Email Address here">
<input type="hidden" name="notify_url" value="http:// some url for notification purpose">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Item name here">
<input type="hidden" name="custom" value="PayPal will return this value as it is in the same format, when it is in sending time, like some array values concat with some special character">
<input type="hidden" name="amount" value="Payment Amount here as decimal for ex. 50.00">
<input type="hidden" name="return" value="http:// return url here, after payment to our website">
<input type="hidden" name="type" value="paynow">
<input type="hidden" name="cmd" value="_xclick">