#sokolriiwards

1 messages · Page 1 of 1 (latest)

autumn jungleBOT
odd niche
#

Hi! Let me help you with this.

#

Yes, you will get a subscription.updated event with a "status" parameter, or invoice.paid - it's better to rely on the latter one.

coral lion
#

ok, at what time do I get status update? or I get status update on recurring date?

odd niche
#

The status wouldn't update if the payment was successful.

#

It depends on how you want to structure your backend logic.
Do you want to do something on successful payments?
Or do you want to do something when the subscription payment fails?

coral lion
#

Yes, I want to upgrade a customer when successful payment and downgrade when fails

#

or keep them upgraded if they didn't changer Package and the payment was successful next month

odd niche
#

Then you can also listen to invoice.payment_failed

coral lion
#

thank you very much for the answers.

odd niche
#

Happy to help!