php - Paypal 订阅 - 失败的付款次数

标签 php paypal paypal-subscriptions

我使用以下 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/

相关文章:

paypal - 是否可以作为礼物延长 PayPal 订阅?

java - 无法修改 paypal 订阅

php - 使用适当的所有权和权限将上传的文件放入主目录

php - 使用 php mysql 在巨型多维数组中搜索

php - 如何使用 ffmpeg/php 在按钮单击时将 mp4 文件转换为 mp3?

magento - 如何删除 magento 中 paypal 部分的重新启用错误

php - 使用 php 将信息更新到 mysql

ruby - 如何制作一个 Ruby 应用程序来向特定用户汇款?

Paypal :如何购买多个订阅?

paypal - 我需要在 php 中通过 api 支付给 paypal 定期付款的总金额列表