2014-06-07 109 views
1

我想用貝寶創建動態計費按鈕

當我用在paypal.com創建按鈕,它產生了我一個按鈕來創建動態結算按鈕:

  <form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_top'> 
     <input type='hidden' name='cmd' value='_s-xclick'> 
     <input type='hidden' name='hosted_button_id' value='BFKATLSGW6CTW'> 
     <input type='image' src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_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> 

,但它與靜態價格的

我嘗試添加一個隱藏的輸入

<input type="hidden" name="amount" value="5.95"> 

但價格仍靜態

我嘗試了自動計費扔paypal.com 但我得到了

你需要有一個PayPal帳戶並增強循環付款包創建自動計費或分期付款按鈕

我viewd我的個人資料,並創建了一個業務應用它,但消息還是一樣

我最後一次嘗試使用這種形式

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 

<!-- Identify your business so that you can bill for payments. --> 
<input type="hidden" name="business" value="BLWHUxxxxxx"> <!-- I put my merchant id----> 

     <!-- Specify an Automatic Billing button. --> 
     <input type="hidden" name="cmd" value="_xclick-auto-billing"> 

     <!-- Specify details about the automatic billing plan. --> 
     <input type="hidden" name="currency_code" value="USD"> 
     <input type="hidden" name="item_name" value="Regular House Cleaning"> 
     <input type="hidden" name="max_text" value="Regular House Cleaning"> 
     <input type="hidden" name="set_customer_limit" value="max_limit_own"> 
     <input type="hidden" name="min_amount" value="1.00"> 



     <!-- Make sure you get the buyer's address during checkout. -- > 
     <input type="hidden" name="no_shipping" value="2"> 

     <!-- Display the description and a text box to enter the maximum. --> 
     <table> 
     <tr> 
     <td><strong> </strong></td></tr> 
     <tr><td> 
     </td></tr> 
     <tr><td>$ 
     <input type="hidden" name="amount" value="5.95"> 
     <input type="text" name="max_amount" value="1000"> USD</td></tr> 

     <!-- Inform buyers of the monthly minimum payment --> 
     <tr><td> </td></tr> 
     </table> 

     <!-- Display the Automatic Billing button --> 
     <table> 

     <tr><td><input type="image" border="0" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" 
     alt="PayPal - The safer, easier way to pay online!"></td></tr> 
     </table> 
     <img alt="" border="0" width="1" height="1" src="http://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" /> 
     </form> 

但結果是

該商家已不再授權提供這種Autobilling plan.Please聯繫商家,或選擇其他產品。

任何建議有一個腳本,從數據庫的價格,讓客戶支付的服務費用!

回答

0

您正在使用託管按鈕。無法重寫Hosted Button中的金額值。您可以清除文本按鈕以覆蓋金額變量。 當您在PayPal中創建按鈕時,請確保在步驟2中取消選中「在PayPal中保存按鈕」選項。這使得按鈕「清除文本」,並提供了使用自定義邏輯覆蓋任何變量的選項。自動計費,分期付款按鈕僅在您有時纔有效Enhanced Recurring PaymentsERPenter image description here