#Willian-subscription-update-webhooks

1 messages · Page 1 of 1 (latest)

wild slate
#

Hi there 👋 by chance, have you tried testing this to see if the event is generated?

shrewd junco
#

no, because I will have to wait for the next months charges to test this

wild slate
#

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.

shrewd junco
#

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?

wild slate
#

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.

shrewd junco
#

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?

wild slate
#

It will trigger when the first invoice is paid as well (the beginning of the first billing period)

shrewd junco
#

so, right after the subscription is bought this "invoice.payment_succeeded" is called right?

wild slate
#

Assuming the first payment that is immediately triggered is successful, then yees.

shrewd junco
#

great!

#

thanks very much for your help!