#DrySs
1 messages · Page 1 of 1 (latest)
Hi
in order to cover all use cases for Subscription you should be listening to invoice.paid event and not charge.succeeded:
https://stripe.com/docs/billing/subscriptions/webhooks
but how can you explain that most of my subscriptions return an event charge.succeeded and some do not?
For example, if the invoice amount is zero, you wan't get a charge.succeeded.
Use invoice.paid event, you'll get one for every invoice paid of a Subscription as mentioned in the guide I shared with you.
I understood that I need to use another event, but my question is to understand why most of my events send event charge.succeeded, and some not. For the subscription example sub_1ME8UHIw9wsbuV8tPeU4GXGj, the amount is not zero, and the event is not sent
For the subscription you shared ( sub_1ME8UHIw9wsbuV8tPeU4GXGj), there is this invoice in_1ME8UHIw9wsbuV8twRW4SJuy for example which amount is zero.
the invoice in_1Mx5abIw9wsbuV8tSSnVs5Wv is not zero, but no event sent
Yeah, stripe don't send automatically for each recurring payment a charge.succeeded.
If you want to get explicitly that event in test mode, you can use on these cards:
https://stripe.com/docs/billing/subscriptions/webhooks#testing:~:text=Perform actions in,successful charge.
events cannot be sent with random process, there must be something wrong during Subscription creation causing event not be sent
I want to understand why, for this Subscription, there is no event sent, but for all other Subscriptions, event is sent
Check the guide I mentioned with you:
https://stripe.com/docs/billing/subscriptions/webhooks
you can't rely on charge.succeeded as it's not fired for each recurring payments.
is this something about Customer context? Payment method used?
I'm sorry, I have understood that you want me to use another event, this is not my question, I will do it
I want to know why the context is different for this Subscription causing event not be sent
you said "as it's not fired for each recurring payments", it's done for most of my Subscriptions (and I have thousand) but for some specifics Subscription, it's not
what are the differences between Subscription sending this event and other which are not sending it?
Between for this invoice, there was an event charge.succeeded
https://dashboard.stripe.com/events/evt_3Mx6XNIw9wsbuV8t1SiaXhxX
In general if there was no charge created the there'll be no charge.succeded event
When using Subscription you may not receive always charge.succeeded (it depends on the payment method mostly)
the event you gave me is not displayed in list of events, why?
ho yes it is, at the end of list, sorry
this event is not listed of Subscription page, strange
and the event you gave me was not send on my webhook
why?
maybe to old and not displayed
ok understood: I was looking for event displayed in Subscription events, but it's related to Invoice page, so not the good place to look for
Let me know if there's any follow-up Qs I can answer!
thanks for your patience and your help, have a nice day 🙏
Welcome! Have a great day!