#Jacob-webhook-subs
1 messages ยท Page 1 of 1 (latest)
You can check invoice.payment_failed to know when an invoice hasn't been paid and customer.subscription.deleted to be notified when a sub has been canceled
Thank you, so that's the issue. I need both.
Appreciate the very fast reply
๐ happy to help! there are a TON of different webhook events, so if you want to look through the comprehensive list you can find it at https://stripe.com/docs/api/events/types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I ended up using PaymentIntentFailed, which seems to be called when they abort the subscription page, eg. incorrect CVV was something I saw
I have a SaaS and had a few customers of the initial version and one cancelled their subscription and it continued, hah
I was updating them by just getting the subscriptions in a background process and updating them (as a fallback), but I didn't realize the subscriptions endpoint does not include cancelled endpoints
Are you possibly on an older API version? The subscriptions endpoint should return cancelled subs on newer API versions