I am starting out with Stripe payments and have 2 specific questions. Perhaps some Stripe-expert will be able to help me .
In my service, each paying user, in addition to the monthly subscription validity period, has a limited number of activities. Activities are counted and stored in the database. But after the start of the next billing period they should be reset to zero. What kind of Stripe event corresponds to a successful payment for the next month? I’m assuming I should use a webhook listener to trigger a backend workflow in the event of a successful next month’s subscription download. But which Stripe event signals that the next month’s subscription has started?
Second, related topic - which Stripe event triggers when the payment for the next month’s subscription fails? How to trigger such an event for testing purposes?