![](/img/trans.png)
[英]How to pass shipping address when calling PayPal API /payments/payment
[英]How to pass shipping address value in paypal email?
这是我第一次开发paypal表格,我有运输地址的问题如何从客户和电子邮件中获取送货地址(请参阅下面的附件)我想从paypal插入电子邮件?
我不知道如何传递送货地址的价值。
主要有10个隐藏变量,我们要传递给PayPal,付款相关流程如下所述(此方法是非常基本的PayPal付款选项,除了PayPal提供的其他付款选项也很少):
<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">
您可以将以上隐藏的变量发送到PayPal,并根据您的演示服务器网站路径设置所需的URL
。
请记住, logged in
使用PayPal Sandbox (test mode) account
查看时,请保持developer.paypal.com
帐户已logged in
。 这将是必需的。
谢谢 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.