Skip to main content

Starts at 0:10, after the intro.

Lesson 6 of 10 · 3:10 · Intermediate

Cancel a subscription when someone buys lifetime

Use Plan Logic to cancel a monthly plan when a member buys lifetime access.

Where this fits

You can sell a one-time plan now, but a monthly member who buys it keeps paying monthly. Plan Logic fixes that.

By the end of this lesson you can

  • Find Plan Logic on a plan in the Memberstack dashboard
  • Cancel recurring plans automatically when someone buys lifetime access
  • Make two free plans swap so a member only has one
  • Know when to use data-ms-price:update instead

Heads up: This video is from 2023. Plan Logic now sits under Show Advanced in a plan’s settings.

Lesson notes

How it works

What Plan Logic does

By default a Memberstack member can hold several plans at once. That's useful when people buy separate courses, but it causes trouble when plans should replace each other. A monthly member who buys lifetime access keeps paying monthly. A member who joins a Teacher plan keeps their Student plan.

Plan Logic fixes this with IF/THEN rules set on a plan. When this plan is purchased or added, then add free plans, remove free plans, or cancel paid prices. You can also set rules for when the plan is cancelled. Memberstack runs the rules for you, so there's nothing to add to your site.

How to cancel a subscription when someone buys lifetime access

Set the rule on the lifetime plan, not the monthly one, because buying lifetime is the trigger.

  1. In your Memberstack dashboard, click Plans and open your lifetime (one-time) plan.
  2. Click Show Advanced at the bottom of the plan settings and expand Plan Logic.
  3. Under When plan is purchased, find the Cancel field.
  4. Turn on Cancel all recurring plans, or pick the specific monthly prices to cancel. Cancel all stops every recurring subscription the member has.
  5. Click Save.

What happens at checkout

The member buys lifetime access with your data-ms-price:add button as usual. Once the purchase completes, Memberstack tells Stripe to cancel their recurring subscription, so they won't be billed again. In Members you'll see the lifetime plan active and the monthly plan cancelled. Test it with a member on your monthly plan before you go live.

Swapping between free plans

The same tool keeps free roles exclusive. Open the Teacher plan and, under When plan is added, choose Student in the Remove field. Then do the reverse on the Student plan. Joining one now removes the other. The Remove field only lists free plans. To stop billing on a paid plan, use Cancel.

For moving between two paid tiers, like Basic to Pro, you don't need Plan Logic. Use data-ms-price:update, which switches the subscription with Stripe proration.

Before you move on

0 of 4

Tick these off on your own site. Done with all of them? You’re ready for the next lesson.

Up next: Next, you’ll let people pick a plan with radio buttons right inside the signup form.

Chapters

Common questions

How do I cancel a monthly subscription when a member buys a lifetime plan in Memberstack?

Open the lifetime plan, click Show Advanced, expand Plan Logic and turn on Cancel all recurring plans under When plan is purchased. Memberstack cancels the subscription in Stripe once the purchase completes.

Should I use Plan Logic to switch between paid tiers?

Usually not. Use data-ms-price:update so Stripe updates the existing subscription with proration. Plan Logic is for recurring to lifetime, and for free plans.

Can Plan Logic remove a paid plan?

Not with the Remove field, which only lists free plans. Use the Cancel field to cancel paid prices.

Keep going

Checked against the Memberstack docs

TranscriptAuto-generated captions
  1. 0:00

    Hello in this video I’m going to show you a really cool feature we have called plan logic and instead of trying to explain how it works I’m just going to show you a couple use cases that I think will kind of put it in context so you’ll find it on the plans page you just click on a plan and then over here on the right hand side you click plan logic here you’ll notice that you essentially have if then statements so if the plan is purchased then I can add one or multiple free plans or I can remove one or multiple free plans or or all free

  2. 0:33

    plans just like that also have the ability to cancel individual prices individual paid prices or I can cancel all recurring prices which for this example I’m going to go ahead and do and show you why this is useful so imagine I have a site here where I have a monthly plan and a lifetime plan if somebody upgrades from the monthly to the lifetime plan I want to cancel their monthly subscription so to show you that in action I’m here on the site I’m currently logged in as a member on the monthly plan and I’m going

  3. 1:04

    to check out for Lifetime access thank you there we go and before I hit checkout I’m just going to show you on the site real quick um oh we need to save that there we go if I go back here here’s my member demo is on the paid recurring plan go back over here and I’m going to complete this checkout plan logic is going to kick in and it’s going to cancel my recurring plan so back to the members Table and there we go I now have lifetime access and I

  4. 1:36

    will not be billed again for that recurring plan now another situation where you might want plan logic is let’s say you have multiple free plans maybe you have a teacher and a student plan and you want people to be able to switch between those and not have multiple right you can’t be a student and a parent in this example here I have free plan one and free plan two if I click free plan one I am added to that plan if I go into the dashboard I can see I’m now on free plan

  5. 2:08

    one check this out if I click and go to free plan 2 there we go that was added to the plan and I now only have free plan two so essentially I have using plan logic I’ve created a a scenario where a member can only have free plan one or free plan two and what that looks like on the plan logic is right in here I have said win free plan one is purchased or added then I want to remove

  6. 2:40

    free plan 2. I could also do remove all free plans um kind of depends on the use case I’ll let you figure that out and then same thing win free plan 2 is added then I want to remove free plan one effectively swapping them so there we go that’s two different use cases using plan logic hopefully this gets your brain going to come up with some cool ideas for things you can do with it there’s tons of options it’s super flexible and we I can’t wait to see what you do with it thanks so much for watching and have a great day

This is v1 of Memberstack University, built from the tutorials we’ve put so much work into over the years. We’d like to make a more organized series.