条纹 invoice.created 网络钩子

Stripe invoice.created webhook

Stripe 建议在 invoice.created webhook 中添加发票项目,这发生在订阅收费前大约一个小时。我担心的是如果站点关闭(或者 webhook 中出现错误)会发生什么。 Stripe 会在没有我想添加的项目的情况下收取发票吗?如果它发生在大量订阅上,这将导致很大的麻烦。有没有办法避免这种情况?

好的,好像文档里有描述。

If your webhooks do not all respond successfully, Stripe will continue retrying the webhooks every hour and will not attempt to pay the invoice. After 3 days, Stripe will attempt to pay the invoice regardless of whether or not your webhooks have succeeded.

https://stripe.com/docs/api#event_types-invoice.created

3 天应该足以对 webhook 的问题做出反应,而且还有收费的 webhook,我可以在那里查看金额。