如果 Stripe 订阅费用因 webhooks 失败,我很想知道取消订阅(除非有更好的方法)。
这就是我的想法。
invoice.payment_failed
custom:stripesubid
属性和用户组它有效吗?如果可用,我很想看到一些示例代码。
谢谢你。
您应该使用来自 Stripe 的网络钩子。这是一个很好的教程,说明如何完全满足您的需求:https : //www.truespotmedia.com/testing-webhooks-in-stripe-with-php/
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句