2012-02-29 86 views
0

這是我第一次開發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

回答

2

主要有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

相關問題