2014-09-26 73 views
0

我正在爲一個非營利性的「5年捐款計劃」設置一個捐贈頁面(在WordPress中)。會員每月支付100美元,爲期72個月。五年經常性支付

我試圖使用PayPal的例子爲定期付款:

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

<!-- Identify your business so that you can collect the payments. --> 
<input type="hidden" name="business" value="[email protected]"> 

<!-- Specify a Subscribe button. --> 
<input type="hidden" name="cmd" value="_xclick-subscriptions"> 

<!-- Identify the subscription. --> 
<input type="hidden" name="item_name" value="Alice's Monthly Digest"> 
<input type="hidden" name="item_number" value="DIG Weekly"> 

<!-- Set the terms of the recurring payments. --> 
<input type="hidden" name="a3" value="69.95"> 
<input type="hidden" name="p3" value="1"> 
<input type="hidden" name="t3" value="M"> 

<!-- Set recurring payments to stop after 6 billing cycles. --> 
<input type="hidden" name="src" value="1"> 
<input type="hidden" name="srt" value="6"> 

<!-- Display the payment button. --> 
<input type="image" name="submit" border="0" 
src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_LG.gif" 
alt="PayPal - The safer, easier way to pay online"> 
<img alt="" border="0" width="1" height="1" 
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" > 

這裏是我的代碼,編輯:

<!-- Identify your business so that you can collect the payments. --> 
<input type="hidden" name="business" value="[email protected]"> 

<!-- Specify a Subscribe button. --> 
<input type="hidden" name="cmd" value="_xclick-subscriptions"> 

<!-- Identify the subscription. --> 
<input type="hidden" name="item_name" value="Sky's The Limit - Galaxy72"> 
<input type="hidden" name="item_number" value="STL-G72"> 

<!-- Set the terms of the recurring payments. --> 
<input type="hidden" name="a3" value="100.00"> 
<input type="hidden" name="p3" value="1"> 
<input type="hidden" name="t3" value="M"> 

<!-- Set recurring payments to stop after 72 billing cycles. --> 
<input type="hidden" name="src" value="1"> 
<input type="hidden" name="srt" value="72"> 

<!-- Display the payment button. --> 
<input type="image" name="submit" border="0" 
src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_LG.gif" 
alt="PayPal - The safer, easier way to pay online"> 
<img alt="" border="0" width="1" height="1" 
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" > 

如果我使用貝寶例如,PayPal頁面就像它一樣顯示 應該。但是,當我編輯代碼時,我們會收到以下錯誤消息: 「您用來進入Pay​​Pal系統的鏈接無效,請檢查鏈接並重試。」

感謝您的幫助!

+0

是否有原因,第二組代碼缺少'

'標籤? – ceejayoz 2014-09-26 16:59:16

回答

1

您正在傳遞不允許的srt = 72。 srt的允許值爲0-52。以下是文檔所述內容:

srt:可選重複出現次數。訂閱付款重複的次數。指定一個最小值爲2,最大值爲52的整數。僅在指定src =「1」時有效。

一旦你設置你可以參考文檔here.

爲任意值0〜52之間,它應該工作的罰款。