#ibrahim - subscriptions webhooks
1 messages · Page 1 of 1 (latest)
Hi! Happy to help
- you should listen to the event:
invoice.payment_failed
https://stripe.com/docs/billing/subscriptions/webhooks#payment-failures - Here is the full list of webhooks that you can handle for subscriptions, with some example of recommended use cases: https://stripe.com/docs/billing/subscriptions/webhooks
many thanks! some questions about that:
- we are using
payment_intent.payment_failedto detect failure to pay the first time aftercheckout sessionis that correct or we should useinvoice.payment_failedas well? - just to confirm I understand well , if we don't handle
invoice.createdand sendfinalizeaction what will happen is that the charge will delay for 72 hours right?
you should use invoice.payment_failed
2. you don't have to manually finalize it, but if you listen to invoice.created you do need to respond to that event with a 200
cool thanks! I think I need to replace:
payment_intent.succeededbyinvoice.paidto activate the subscription on our side.payment_intent.payment_failedbyinvoice.payment_failedto stop giving the service or notify customer etc
does that sound good? (not handling payment_intent)
yep