我在
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 …