2014-09-26 47 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之间,它应该工作的罚款。

相关问题