【问题标题】:Paypal billing agreement does not pay quickly?Paypal 结算协议不快速支付?
【发布时间】:2017-02-22 17:12:29
【问题描述】:

我制定了如下的 Paypal 计划,价格为 49 美元:

{
    'id': 'P-PAYPAL-ID',
    'name': "My Plan",
    'description': 'My description of the plan',
    'type': 'INFINITE',
    'merchant_preferences': {
        'auto_bill_amount': 'YES',
        "initial_fail_amount_action": "CONTINUE",
        "max_fail_attempts": "3",
        "return_url": "https://example.com/paypal/response",
        "cancel_url": "https://example.com/paypal/response"
    },
    'payment_definitions': [{
        'name': 'Monthly payment',
        'type': 'REGULAR',
        'frequency': 'MONTH',
        'frequency_interval': 1,
        'cycles': 0,
        'amount': {
            'value': '49',
            'currency': 'USD'
        }
    }]
}

我已创建计划并按照documentation here 启用它。

然后我按照以下步骤创建了Billing Agreement

  1. 创建结算协议
  2. 将用户重定向到 Paypal 页面以接受协议
  3. 从我在1中得到的URL执行协议。

一切正常,在我的沙盒用户帐户中,我可以看到标记为活动的“定期付款详细信息”。

我为我的服务器订阅了 webhook。

我的问题如下:付款没有立即完成?我等了一个小时,还没付钱!

是否有我忘记提出“执行已执行协议”的请求...?

【问题讨论】:

标签: paypal


【解决方案1】:

简短而甜蜜的答案是这是不可能的。在协议中,您可以选择设置 startDate 值。根据我的经验,以下陈述是我得出的结论。

看起来付款只是根据当前日期的 07:00 UTC 之前或之后的日期处理的。

例如。当前日期时间是 2017-05-04T04:50:00.00Z 我将开始日期设置为当前 UTC 日期时间加上 30 秒。因为协议日期设置为大于当前日期时间的值,所以 API 不会引发错误,但不会将您的时间设置为您指定的时间。相反,它将其设置为 2017-05-04T07:00:00Z。

现在,如果您有相同的日期时间 2017-05-04T04:50:00.00Z 而不是添加 30 秒,而是添加 24 小时,您会认为您的时间将设置为 2017-05-05T04 :50:00.00Z。但是不,时间将设置为 2017-05-05T07:00:00Z。

所以看起来这些只是在每天 07:00 UTC 处理,除了日期之外你不能指定任何东西。

【讨论】:

    猜你喜欢
    • 2013-09-28
    • 2017-07-09
    • 2011-12-03
    • 2015-05-21
    • 2013-10-21
    • 2014-12-03
    • 2016-03-11
    • 2013-05-18
    • 1970-01-01
    相关资源
    最近更新 更多