# Paid Members Area

**URL:** <https://forum.infinityfree.com/t/paid-members-area/48279>\
**Category:** Informal\
**Created:** [July 10, 2021, 11:46pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279 "2021-07-10T23:46:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 10, 2021, 11:46pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/1 "2021-07-10T23:46:47Z")

</div>

Hello,  
Does anyone know how I could create a members area that would require payment? For example, it would cost $3 to view the protected pages forever. I found a payment forum, but I don’t really know how to add a password field so that users can use it to login to the protected pages.

> **[Stripe Subscription Payment Integration in PHP - CodexWorld](https://www.codexworld.com/stripe-subscription-payment-integration-php/)**
>
> Stripe subscription payment with PHP - Integrate recurring payment with Stripe API using PHP. Example script to integrate Stripe subscription payment in PHP with Stripe API.

If there is something else that would work better (Preferably free/open-source), let me know! I do want to avoid WP, or other non-static (I forgot the word, is it dynamic?) CMS’s.

Thanks!

---

<div class="post-metadata">

**Author:** ![TigerMANEK426](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/tigermanek426/32/12600_2.png) [@TigerMANEK426](https://forum.infinityfree.com/u/TigerMANEK426)\
**Post date:** [July 11, 2021, 10:00am UTC](https://forum.infinityfree.com/t/paid-members-area/48279/2 "2021-07-11T10:00:56Z")

</div>

You first need to think about accounts, you can’t do any sort of payment without the user being logged into an account. I recommend using PayPal as your payment gateway as it’s much easier to use over stripe.

Once you’ve dealt with user accounts, you then need to think about how you’re going to store the fact that the user has paid for those pages. The easiest way would be to reserve a field in the database and change the value when the user has paid.

I found this tutorial online about PHP and PayPal, however, it requires Composer to install (so I’ve been nice and provided the package below). It (in theory) should make your life easier as a lot of the security, etc is already there.

If for whatever reason this doesn’t work, there are plenty of non-composer tutorials online and at the end of the day, you don’t have to use PayPal if you don’t want to, it’s just my recommendation.

[composer-omnipay.zip](https://forum.infinityfree.com/uploads/short-url/cXTsoZs1GEXAuA9oOwCy90EBZL3.zip) (799.8 KB)

---

<div class="post-metadata">

**Author:** ![YounesAmeziane](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/younesameziane/32/17311_2.png) [@YounesAmeziane](https://forum.infinityfree.com/u/YounesAmeziane)\
**Post date:** [July 11, 2021, 10:45am UTC](https://forum.infinityfree.com/t/paid-members-area/48279/3 "2021-07-11T10:45:54Z")

</div>

You ve to set up a database and a page where the users can log in and pay then use sessions, you ve to make some way to generate a different id for users that payed and then use this script : session\_start(); if(isset($\_SESSION[‘id’])){ here you can chose what to do }  
this is php by the way good luck

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 11, 2021, 12:31pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/4 "2021-07-11T12:31:11Z")

</div>

I guess you could find another tutorial on how to write a members area / login system in PHP and merge that with the system. Building a simple solution shouldn’t be too hard.

There are plenty of ways to build what you’re looking for, depending on the versatility you need. But I can’t think of any solution that’s (almost) free and requires (almost) no custom coding.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 11, 2021, 12:41pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/5 "2021-07-11T12:41:26Z")

</div>

> [@Admin](#):
>
> I guess you could find another tutorial on how to write a members area / login system in PHP and merge that with the system.

5+ hours on search engines get me here 😂

> [@Admin](#):
>
> There are plenty of ways to build what you’re looking for, depending on the versatility you need.

I with I knew php. It would solve a lot of issues I am having now.

> [@Admin](#):
>
> But I can’t think of any solution that’s (almost) free and requires (almost) no custom coding.

Probably because people don’t want to give there hard work away for free (Witch I understand). I was hoping I would be lucky on this one, I may just stick with extra ads on those pages instead.

Thanks anyway!

---

<div class="post-metadata">

**Author:** ![anon43777899](https://forum.infinityfree.com/letter_avatar/anon43777899/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon43777899](https://forum.infinityfree.com/u/anon43777899)\
**Post date:** [July 11, 2021, 6:17pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/6 "2021-07-11T18:17:50Z")

</div>

You can use Profile Builder Wordpress Plugin

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 11, 2021, 6:53pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/7 "2021-07-11T18:53:11Z")

</div>

> [@robertz](#):
>
> Wordpress Plugin

I don’t want to use WP

> [@Greenreader9](#):
>
> I do want to avoid WP

---

<div class="post-metadata">

**Author:** ![anon43777899](https://forum.infinityfree.com/letter_avatar/anon43777899/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon43777899](https://forum.infinityfree.com/u/anon43777899)\
**Post date:** [July 12, 2021, 12:42am UTC](https://forum.infinityfree.com/t/paid-members-area/48279/8 "2021-07-12T00:42:50Z")

</div>

Sorry didn’t notice that in the end

---

<div class="post-metadata">

**Author:** ![anon43777899](https://forum.infinityfree.com/letter_avatar/anon43777899/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon43777899](https://forum.infinityfree.com/u/anon43777899)\
**Post date:** [July 12, 2021, 3:46pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/9 "2021-07-12T15:46:35Z")

</div>

Another Idea would be to build a site introducing people to the paid members area. Then you can add a contact form to allow people to sign up. Then create a folder in your htdocs of where you want the paid members area to be. Go to the directory privacy section of vPanel and choose that directory. Choose a strong password. Then give your members the password and username.

However I don’t know how to automate the proccess.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 12, 2021, 4:25pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/10 "2021-07-12T16:25:08Z")

</div>

Good idea, but each person would need unique credentials, and it would need to be automated.  
Thanks for the idea.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 27, 2021, 4:25pm UTC](https://forum.infinityfree.com/t/paid-members-area/48279/11 "2021-07-27T16:25:51Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
