#rohit_81336
1 messages · Page 1 of 1 (latest)
Hi there!
Have you read this article about Subscription upgrades? https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
yeah i went throght this article. This fitted perfectly to my previous usecase in which i used the proration feature of stripe but now i am planing to add credits to upgrades as well
Can you clarify what should happen exactly when the user upgrades from the $19 plan to the $39 plan, ten days after starting the subscription?
Like how much they pay and so on.
they pay full $39 dollars for the new plan upon successfull payment there subscription is activated but the billing cycle needs to change to plan interval (in this case 1 month) + credit from previous plan (20 days will be converted to the $39 plan and the user will receive a 10-12 days credit)
so lets say i bought a $19/month plan on 1 Jan and on 10th jan i upgraded to $39/month plan i pay $39 for Jan but my next payment will not be on 10th Feb instead it should be on 20th Feb (with a 10 days credit)
that's pretty complicated to accomplish in Stripe and is not really how upgrades work by default, so it's going to take some work
so the easiest thing to do right now will be the proration feature right?
or changing the price according to the credit the user should recieve
yes but proration does not charge upfront at the time you call the API(it charges in the next invoice), unless you use the always_invoice setting, and if you do that, then the billing date resets to be come the time you call the API, not "now + 10 days" as you want.
so starting a new subscription with a new price should work right?
example: instead of $39 i pay lets say $20 but from the next billing date i pay $39
I don't understand exactly what you're getting at, sorry
you said you already tried that but then the issue is the billing anchor is longer than the cycle, so that errors
basically instead of refunding the user, i am trying to adjust the credit days to the new subscription and i want to know if there is some stripe magic that i am missing
here i am not trying to change the billing anchor, i am adjusting the price according to the credit
this might work
then you can create a new Subscription and add a floating Invoice Item so the next invoice has an extra $19 (https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items), I suppose that might work.