经常性支付五年

时间:2014-09-26 16:51:44

标签: wordpress recurring

我正在为一个拥有" 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="alice@mystore.com">

<!-- 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="kcarson@basinwidefoundation.com">

<!-- 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示例,PayPal页面将完全按照预期显示。但是,当我编辑代码,具有我们的细节,我收到此错误消息: &#34;您用于进入Pay​​Pal系统的链接无效。请查看该链接,然后重试。&#34;

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

你传递的srt = 72是不允许的。 srt的允许值为0 - 52。以下是文档的说法:

srt:可选的重复次数。订阅付款重复的次数。指定一个最小值为2且最大值为52的整数。仅当指定src =“1”时才有效。

您可以参考文档here.

一旦将其设置为0到52之间的任何值,它应该可以正常工作。

相关问题