Hello again, and thank you for your help.
I found out now that the "invoice.payment_succeeded" event is not the best option.
If, for example, a subscription cycle would restart on early Saturday, there is no actual payment up until Monday, so the event has not yet been triggered. Which means that the user is left without access during the weekend, although they will finally get charged for these days. Do you have any suggestions on that?
Another thought would be that the "invoice.created" event might be more suitable to renew licenses, and then use "invoice.payment_succeeded" to confirm the payment, or "invoice.payment_failed" to revoke the access. Do you have any thoughts, or any counterexamples on that?
Thank you,
Stathis