How to create a single fallback page for expired or canceled Memberstack subscriptions? Answered

Hi everyone 👋

I have a quick question regarding subscriptions.
We’d like to set up a page that will automatically appear when a member no longer has an active subscription. This could happen if they cancel, if their card expires, or if there are insufficient funds after several attempts.
Is there a recommended way to handle this scenario in Memberstack? Ideally, we’d like one dedicated page that covers all of these cases.

Thanks a lot in advance for your help! 🙏

Comments

2 comments

  • Comment author
    A J

    Hey Aleksandar Radovanovic,

    I believe when we fetch a member, we also get their plan status as per the developer docs. So, one way to go about it would be to have a simple custom script, which checks the logged in user's plan status, and if it's anything other than active, you can redirect the user to the preferred page.

    There's a base sample script that a user in this community shared for redirecting users who don't have a plan attached to them (because of not going through with the payment), but you could further customize it for your use-case and check the plan status and apply redirect. Hope this gives you some idea.

    0
  • Comment author
    Aleksandar Radovanovic

    Thank you A J! This was very helpful as usual.

    0

Please sign in to leave a comment.