asp.net – Stripe Webhook事件续订订阅

我在 Asp.net应用程序中使用STRIPE进行信用卡付款.应用程序有月度订阅计划.第一次用户订阅webhook事件’customer.subscription.created’时触发.我的问题是,在下个月订阅续订时会发生哪些事件?谁能告诉我订阅续订webhook事件的流程?

谢谢

解决方法

除了customer.subscription.created,您还将收到invoice.created,后跟invoice.payment_succeeded(或invoice.payment_Failed)

从文档:

If you are using webhooks,Stripe will wait one hour after they have all succeeded to attempt to pay the invoice; the only exception here is on the first invoice,which gets created and paid immediately when you subscribe a customer to a plan.

所以,这意味着,invoice.created事件也将在下个月开火.
然后条纹将等待一小时,然后向客户卡充电,然后发出charge.succeeded(如果收费成功)或charge.Failed(如果充电失败)

小时等待是允许将发票项目添加到发票中,如果您愿意的话.

有关您可能需要这样做的详细信息,请参阅我的answer on this question

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...