Subscription - Lock access to page or content

Hi,
How can I lock access to content or page until user subscribes to a stripe plan?
Would also love to get 1 on 1 consultation as I need more help

Hi @sanjuujosephh, you could do this in a number of ways. Essentially, though, you’re going to want to have a field in your database that you can reference to see whether a user has subscribed or not.

Let’s imagine a simple “yes/no” field called “Subscribed”. The default value for this field could be “No”. Then, after a user subscribes via stripe, you could change the “Subscribed” field for that user to “Yes”.

On whatever page you want to put behind a paywall, then, you could set up a condition on page load that redirects users whose value for “Subscribed” is “No”. You could also set up privacy rules that restrict viewing paid content when a user is not subscribed.

I’d be happy to help you in a consultation session if you’d like. Feel free to send a pm :slight_smile:

Hi Jacob can you help me how did you connect the stripe to the data condition of a subscribed user ?