Paypal定期付款显示暂停

时间:2015-10-08 10:03:16

标签: paypal paypal-subscriptions

我使用下面的代码示例来实现定期付款:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="XXXXXX">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="image" src="http://www.paypal.com/en_GB/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="1.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="D">
<input type="hidden" name="srt" value="6">
<input type="hidden" name="src" value="1">
<input type="hidden" name="return" value="XXXXXX">
<input type="hidden" name="notify_url" value="XXXXXX">
<input type="hidden" name="cancel_return" value="XXXXXX">
<input type="hidden" name="sra" value="1">
</form>
</body>
</html>

当我在沙箱上下订单并测试付款时,我的初始付款将被扣除,并显示第二天的定期付款周期显示到期。但是当我第二天检查时,它显示了定期付款暂停的状态。我还附上了我的paypal帐户的屏幕截图显示已暂停。 enter image description here

1 个答案:

答案 0 :(得分:0)

您将最大故障数设置为1.这意味着如果付款失败,配置文件将在一次尝试后自动暂停。您需要将该数字增加到2或3.

<!-- PayPal reattempts failed recurring payments. -->
<input type="hidden" name="sra" value="1">

如果您不想要初始付款,可以添加1天的试用期或者您想要试用期的多长时间。试用期可以是0.00

<!-- Set the terms of the 1st trial period. -->
<input type="hidden" name="a1" value="0.00">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="D">

如需更多帮助,请参阅PayPal开发者网站的Recurring Payments Subscription Guide