#Derek Lance

1 messages · Page 1 of 1 (latest)

radiant lichenBOT
tiny cosmos
#

Yup! For coupon-related transactions invoice.payment_succeeded is going to be the best event to listen for.

distant parcel
#

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

tiny cosmos
#

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.

distant parcel
#

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?

tiny cosmos
#

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

distant parcel
#

gotcha. ok thanks so much