我使用以下 html 来创建 paypal 订阅:
<form action="http://paypal/url/..." ...>
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="selleremail@somedomain.com">
<input type="hidden" name="item_name" value="My Subscription">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="tax" value="0.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="shipping" value="0.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="src" value="1">
<input type="hidden" name="cancel_return" value="http://mysite/paypal/cancel.page">
<input type="hidden" name="return" value="http://mysite/paypal/success.page">
<input type="hidden" name="notify_url" value="http://mysite/paypal/ipn.page">
</form>
一切正常,新订阅已创建,IPN 通知已按我的方案获取。一件事困扰着我。如果某些付款失败,相应的订阅将暂停。这是由于订阅的默认设置而发生的。在暂停订阅配置文件之前允许设置 1 次失败的付款。
我可以按照 documentation 中的描述手动关闭它,但如何在订阅创建阶段设置它?是否值得关闭它或设置一些失败次数更好?
最佳答案
答案来自a person在 Paypal 开发者网络:
Currently there is not a variable you can pass in the subscription button code to change the number of failed payments allowed before the profile is suspended. The default value at this time is one and you can change it manually in the account as you mentioned above. A feature request has been submitted for about adding this functionality but there is no timeframe on when this may be done. However, if using Express Checkout API to create the recurring profiles, you can specify a value for MAXFAILEDPAYMENTS.
关于php - Paypal 订阅 - 失败的付款次数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8803759/