如何在PayPal电子邮件中传递送货地址值?

问题描述:

这是我第一次开发paypal表单,我有收货地址的问题如何从客户和电子邮件获取送货地址(请参阅下面的附件)我想从贝宝中插入电子邮件?如何在PayPal电子邮件中传递送货地址值?

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

enter image description here

enter image description here

+0

它与文档中的所有其他值可以传递给贝宝。 – 2012-02-29 05:15:13

+0

你的意思是这个或这个 ruslyrossi 2012-02-29 05:21:21

+0

https:// cms。 paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HI0J0VU – 2012-02-29 05:39:58

主要有10我们已经传递给贝宝如下所述支付相关的过程隐变量(这个方法是非常基本的贝宝付款的选项,除了它的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按您的演示服务器的网站PA日。

记住保持developer.paypal.com账号logged in当你与PayPal Sandbox (test mode) account检查。这将是必需的。

谢谢!

+0

谢谢..但什么是领域的航运地址(我意思是我想在电子邮件中显示地址,当有人购买)这个“address1”? – ruslyrossi 2012-02-29 06:49:10

+0

有一个'custom'命名的变量,就像上面的hiddens一样,您可以传递任何自定义信息,PayPal会在传递值时返回该值。不过,我认为您不需要将收货地址传递给PayPal,您可以通过会话或通过将该信息与cart_id或其他东西存储在数据库中。PayPal只需要以上信息即可处理付款 – 2012-02-29 06:59:24

+0

其实..my点是在管理员的电子邮件有从客户的地址...如果你看到上面的图像,我只有没有从客户的地址... – ruslyrossi 2012-02-29 07:09:19