#Willian-subscription-update-webhooks
1 messages · Page 1 of 1 (latest)
Hi there 👋 by chance, have you tried testing this to see if the event is generated?
no, because I will have to wait for the next months charges to test this
We've actually got a neat piece of functionality in beta to help with that:
https://stripe.com/docs/billing/testing/test_clocks
But yes, I just ran a test with a zero dollar invoice (trial subscriptions are a quick way to replicate those) and it did generate an invoice.payment_succeeded event.
ok, thanks
the "invoice.payment_succeeded event" is called only on the next month from the initial date of the subscription or it is called on the moment the subscription is done too?
I'm not sure what you're referring to when you say 'the subscription is done'. invoice.payment_succeeded events will be generated whenever an invoice (including $0 invoices) is paid. With a subscription this will happen at the beginning of the billing period when the next invoice is generated.
With a subscription this will happen at the beginning of the billing period when the next invoice is generated.
by the above, you mean the "invoice.payment_succeeded" will be triggered right after the moment the subscription is bought too, or will be triggered only the next month?
It will trigger when the first invoice is paid as well (the beginning of the first billing period)
so, right after the subscription is bought this "invoice.payment_succeeded" is called right?
Assuming the first payment that is immediately triggered is successful, then yees.