#rohit_81336

1 messages · Page 1 of 1 (latest)

storm tangleBOT
noble coyote
#

Hi there!

sacred zodiac
#

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

noble coyote
#

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.

sacred zodiac
#

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)

sour prism
#

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

sacred zodiac
#

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

sour prism
#

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.

sacred zodiac
#

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

sour prism
#

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

sacred zodiac
#

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

sacred zodiac
#

this might work

sour prism