Stripe Plugin
I was wondering how to handle "proration" ? I don't know if this the good word for this.
Example : I just bought the 5$ basic subscription and want immediately buy the pro plan at 10$, I won't pay 5 + 10
Example : I'm in the basic plan at 5$, I want in the middle of the month upgrade to the pro plan at 10$
Also another question how do you handle retrogradation plan / proration in the other way ? Like I made an example I bought pro plan 10$ and wanted to downgrade to the basic one at 5$, in my implementation I had to buy it lol
3 Replies
Maybe you should fetch the current user subscription and do your logic
like if user bought 5$ subscription in 3 days he will pay $5 to upgrade $10 subscription
But probably stripe supports something like you said, you should check api docs
I'm pretty sure Stripe handle this, but I'm missing something
For the proration you can add this inside getCheckoutSessionsParams
but now I think it's like the user cumulate both subscriptions lol so I got another problem.
To handle downgrades, there's the solution of setting up a task (a cron or similar) that will check the accounts to be downgraded every day.
Sure, it would be more sexy if it were managed by Stripe