customer.subscription.updated 是处理订阅状态的好方法吗?

Is customer.subscription.updated a good way to handle the status of a subscription?

我查看了 this 问题,但我仍然不能 100% 确定如何处理定期订阅。我有以下问题:

仅使用 customer.subscription.updated webhook 是否可以,还是必须使用 invoice.payment_succeeded 等 webhook 来跟踪订阅?感谢您的帮助。

您可能还想跟踪 invoice.payment_failed - 可能还有 invoice.payment_action_required - 这样您就知道这些发生的时间;否则你应该很好,是的。您可以在这里阅读更多相关信息:

https://stripe.com/docs/billing/webhooks