我是否需要一次或每次到期时执行我的PayPal BillingAgreement [英] Do I need to execute my PayPal BillingAgreement one time only or every time the bill is due

查看:101
本文介绍了我是否需要一次或每次到期时执行我的PayPal BillingAgreement的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Django应用程序中使用带python的paypalrestsdk在我的网站上合并会员订阅.我了解我需要执行以下操作:

I am trying to incorporate a member subscription on my website using the paypalrestsdk with python in a django application. I understand that I need to do the following:

  1. 为每种订阅类型设置BillingPlan(即每月10美元的月度计划和每月100美元的年度计划)
  2. 创建一个BillingAgreement,它(基于用户对计费计划的选择)将重定向用户以批准该协议,并返回该协议对象,这将使我能够访问计划信息以更新,暂停,重新激活协议.
  3. 最后,为了开始,我需要执行BillingAgreement.这是令我困惑的部分.我是每月执行一次协议(针对已同意按月订阅的用户)还是一次执行一次协议以告知PayPal自动处理每月付款?如果后一种情况是答案,那么我怎么知道付款是否由于某种原因而失败? (或者我是否需要通过检索用户BillingAgreement并在特定日期范围内搜索该协议的交易来检查用户的每次登录时间,以确保它们是最新的并且没有失败?)

我看过PayPal开发人员文档以及GitHub示例.我还成功编写了使用沙箱创建和执行一次性付款的代码,而且一切似乎都正常.我只是对REST api中的定期付款的工作方式感到困惑-具体请参见上面的#3.

I have looked at the PayPal developer docs as well as GitHub samples. I have also successfully written code to create and execute one-time payments using the sandbox and all seems to be working just fine. I am just confused by how the recurring payments in the REST api work - specifically see #3 above.

推荐答案

您不必每月执行一次结算协议,而只需执行一次即可开始协议,即告诉PayPal自动处理每月付款.

You do not need to execute the billing agreement each month but only once to start the agreement i.e. tell PayPal to automatically process the monthly payment.

您可以使用搜索交易"功能来检查是否没有用户付款失败,但是您可能仅需要在每个特定用户的每个月付款周期开始时执行此操作.与他们每次登录相反.在将来,我们将尝试提供更好的通知机制,以通知商家基于计费协议的付款已失败/更改状态.

You can use the search for transactions feature to check that none of the payments of a user failed, but you might only need to do that at the start of every monthly payment cycle for a particular user. As opposed to everytime they log in. In the future, we will try to provide better notification mechanisms to inform the merchant that a payment on a billing agreement has failed/changed status.

这篇关于我是否需要一次或每次到期时执行我的PayPal BillingAgreement的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆