【问题标题】:Paypal Subscription - Number of failed paymentsPaypal 订阅 - 付款失败次数
【发布时间】:2012-02-06 21:26:19
【问题描述】:

我使用以下 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 中的说明手动关闭它,但是如何在订阅创建阶段设置它?是否值得将其关闭或设置一些失败次数?

【问题讨论】:

    标签: php paypal paypal-subscriptions


    【解决方案1】:

    a person@paypal 开发者网络的回答:

    目前没有可以在订阅中传递的变量 按钮代码更改之前允许的失败付款次数 个人资料被暂停。此时的默认值为 1,而您 可以如上所述在帐户中手动更改它。一种 已提交有关添加此功能的功能请求 但是没有关于何时可以完成的时间表。但是,如果使用 Express Checkout API 创建循环配置文件,您可以指定 MAXFAILEDPAYMENTS 的值。

    【讨论】:

      【解决方案2】:

      将此添加到您的表单中:

      <input type="hidden" name="reattempt" value="1">
      

      这导致失败的付款为reattempted(我认为最多 3 次,两次尝试之间有 1 天)。至于是打开还是关闭更好,我真的想不出重新尝试对你不利的场景:它让客户有额外的机会给你钱。如果您认为付款失败后几天免费使用该服务的人确实有问题,请在收到 subscr_failed IPN 时暂停该帐户,直到付款成功为止。

      【讨论】:

      • reattempt - Indicates whether reattempts should occur upon payment failures (1 is yes, blank is no). 看起来和sra - Reattempt on failure. If a recurring payment fails, PayPal attempts to collect the payment two more times before canceling the subscription. 一样,而reattempt 是与通过IPN 通知返回的订阅事务关联的参数。
      • &lt;input type="hidden" name="reattempt" value="1"&gt; 没有帮助,挂起前还有 1 次失败。
      【解决方案3】:

      付款失败不会取消。首次失败后,PayPal 将尝试在 5 天后再次收款。如果同样失败,PayPal 将在 5 天后尝试第三次也是最后一次。

      当您可以设置原始 PayPal 个人资料时,您有两种处理失败收费的选项。这可以在个人资料订阅的“经常性费用”部分找到。

      您将在此处获得的条款如下:

      recurring_payment_suspended_due_to_max_failed_payment
      

      这还将为您提供下次尝试执行时的重试日期。

      'retry_at' => '02:00:00 Feb 08, 2017 PST',
      

      【讨论】:

        猜你喜欢
        • 2020-01-03
        • 2012-03-04
        • 2021-10-15
        • 2020-07-24
        • 2020-03-07
        • 2018-06-11
        • 2013-07-16
        • 2014-09-21
        • 1970-01-01
        相关资源
        最近更新 更多