#Derek Lance
1 messages · Page 1 of 1 (latest)
Yup! For coupon-related transactions invoice.payment_succeeded is going to be the best event to listen for.
I was hoping for 1 webhook event that would handle both a normal subscription payment, as well as coupons that give 100% discount
would that event still work for normal subscriptions with no coupon?
also is there a doc page that gives a more in depth description of what each webhook event does? I'm a Stripe noob and it gets a bit confusing when each event gets triggered for me
would that event still work for normal subscriptions with no coupon?
If by "work" you mean "fire when a subscription payment goes through" then yes, it should work.
Here's the docs on all the events we use: 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.
actually I see that the payment gets confirmed before the subscription gets created in the event log, I think maybe customer.subscription.created would be better, what do you think?
customer.subscription.created may not fire after a payment succeeds. Depending on your integration, it could fire by itself without a payment ever having been received. It's best to use invoice.payment_succeeded
gotcha. ok thanks so much