2014-06-08 90 views
0

我正在用PayPal結帳創建一個簡單的表單。我正在尋找將不是結算名稱的其他名稱傳遞給結帳頁面。有沒有我可能看到的任何Paypal變量?Paypal:傳遞客戶名稱

回答

0

下面是基本的貝寶標準按鈕HTML變量指南從PayPal的開發者網站: PayPal Standard Button HTML Variables Guide

這裏是一個能通過客戶名稱和客戶電話號碼的一些基本開通支付寶標準信號源按鈕代碼:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 
<input type="hidden" name="cmd" value="_xclick"> 
<input type="hidden" name="business" value="[email protected]"> 
<input type="hidden" name="lc" value="US">Enter Amount<br /> 
<input type="hidden" name="item_name" value="Enter Amount"> 
<input type="text" name="amount" size=8> 
<input type="hidden" name="currency_code" value="USD"> 
<input type="hidden" name="button_subtype" value="services"> 
<input type="hidden" name="no_note" value="0"> 
<input type="hidden" name="cn" value="Add special instructions to the seller:"> 
<input type="hidden" name="no_shipping" value="2"> 
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted"><br /> 
<table> 
<tr><td> 
<input type="hidden" name="on0" value="Client Name">Enter Client Name</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr> 
</table> 
<table> 
<tr><td><input type="hidden" name="on1" value="Client Phone">Enter Client Phone Number (no dashes or special characters)</td></tr><tr><td> 
<input type="text" name="os1" maxlength="200"></td></tr> 
</table> 
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
</form> 

通過客戶端名稱和客戶端的電話號碼給PayPal按鈕代碼控制的這部分:

<table> 
<tr><td><input type="hidden" name="on0" value="Client Name">Enter Client Name</td></tr><tr><td> 
<input type="text" name="os0" maxlength="200"></td></tr> 
</table> 
<table> 
<tr><td><input type="hidden" name="on1" value="Client Phone">Enter Client Phone Number (no dashes or special characters)</td></tr> 
<tr><td><input type="text" name="os1" maxlength="200"></td></tr> 
</table>