๐Resetting values on payment
Each created feature is resettable - each time the billing cycle ends, you can call resetQuotas
on the subscription to reset them.
You can have:
consumable features, for example, the number of mails your client can send each month via your newsletter service
non-resettable features, like team seats, the number of maximum projects at a time, etc.
The appropriate way is to be able to reset the quotas after each billing cycle. With Stripe, you might want to implement a Webhook controller listening to the invoice.payment_succeeded
event:
To avoid resetting, you may call notResettable()
on the feature. This way, the quota reset won't occur on the seats
feature.
Last updated