1) Question
Is there a way of switching paid plans for a yearly subscription? Using the unused part of the year as credit for the upgrade to a higher tier?
2) Answer
There are two ways to accomplish this.
One → you can swap the member's plan yourself by updating the subscription in Stripe.
Two → the member can upgrade their account by clicking on a
data-ms-price:update button for the yearly plan. This will launch the Stripe checkout and automatically prorate the purchase. Caution: Verify You Are Using data-ms-price:update (Not data-ms-price:add)
When configuring a Monthly to Yearly upgrade, make sure the upgrade button uses data-ms-price:update rather than data-ms-price:add.
data-ms-price:update is designed for changing an existing paid subscription and automatically applies Stripe proration to the upgrade.
Using data-ms-price:add instead can create an additional subscription rather than updating the member's existing subscription. If the member already has an active monthly subscription, this can result in multiple subscriptions and additional charges.
Quick Configuration Check
-
Correct Choice for Monthly to Yearly Upgrades: data-ms-price:update="prc_YEARLY_PRICE_ID"
This tells Memberstack to find the member's active monthly subscription and swap the price ID to the yearly plan. Stripe automatically calculates any unused time on the monthly plan as a prorated credit toward the new yearly total. -
Incorrect Choice for Existing Subscribers: data-ms-price:add="prc_YEARLY_PRICE_ID"
Use data-ms-price:add only when a new member is purchasing a plan for the first time with no prior active subscription or if they are purchasing another separate plan while continuing with their existing plans / subscriptions.
For a deeper explanation of when to use :add vs :update and how Plan Logic fits in, see our Plan Logic Recipes article.
Keywords: proration, discount, reduced price, prorate, etc.
Comments
5 comments
When I am upgrading from pro monthly to pro+ monthly it is showing me extra money I used update attribute in webflow but I don't know why this is happening. But when I am upgrading from pro monthly to pro yearly or pro+ yearly then everything is fine!!
Hey Harsh rawat 👋
To confirm - do you want the plan to not be prorated on updated?
No, I didn't want that "Pro+ price", because after that the price doubles. I want this pricing to work just like your original website. When we upgrade plan in your site we only get 2 price prorated credit and prorated charge.
Harsh Rawat thanks again for bringing this to our attention 🙏
Tyler was able to push an update to get this working in the way you expected. Please give it a try and let us know how it goes.
Hey, now it's working fine!! I just checked it and all plans are working properly.
Please sign in to leave a comment.