【问题标题】:When a Paypal billing subscription is charged for the 2nd time, what event is fired to the webhook?当第二次向 Paypal 计费订阅收费时,会向 webhook 触发什么事件?
【发布时间】:2017-05-31 05:53:34
【问题描述】:

假设我创建了一个 billing plan,然后是 billing agreement(即订阅),通过 Paypal REST API 每月无限次收费,并且假设我有一个监听所有事件的 webhook:将触发什么事件类型下个月何时向客户收费?

这是一个list of all the possible events,我在simulator 中尝试了很多,但没有一个返回类似于关联billing agreement 的ID。

【问题讨论】:

  • 你有没有想过这个问题?我也需要知道这个答案,并且文档充其量是平庸的。
  • @CWitty 是的,刚刚添加了一个 asnwer...

标签: paypal paypal-sandbox paypal-rest-sdk


【解决方案1】:

我发现很难。是PAYMENT.SALE.COMPLETED

您通过event.resource.billing_agreement_id 获取帐单协议ID

【讨论】:

  • 谢谢大家,我想不出这个。我真的不喜欢 PayPal,尤其是他们的文档。
猜你喜欢
  • 2019-05-28
  • 2020-04-07
  • 2016-06-03
  • 2016-04-24
  • 1970-01-01
  • 1970-01-01
  • 2018-10-03
  • 2013-03-27
  • 2022-10-21
相关资源
最近更新 更多