Within my application, I need to limit the user to number of API calls per month. For the billing, I’m using Laravel Spark for Stripe, and I’m not sure how should I implement this, so any help would be greatly appreciated.
The problem I’m facing is that say the user signs up, buys a subscription which costs 300$, gets X amount of API calls, use them all, but still has 20 days left in his sub, downgrades to one which costs 40$, but his remaining days will pay for the whole downgraded subscription, and gives him new credits. This might be a nonsense, and it could be like that, but it doesn’t feel right.
Could someone please guide me through it?