简体   繁体   中英

How to create different membership based site in PHP codeigniter?

i created one registration form with email verification and log in form with all the security. now i want to add monthly paid membership structure in it. also with free trial for 30 days. i can't understand the logic to implement this thing. it will be great if some one give me proper direction to achieve it.

this is main requirement

1st user can use trial membership for 30 days. 2nd is monthly membership fees, user can start anytime by paying monthly fees and also he can select it when he register - free or monthly fees.

my system is in php and created on codeigniter framework. but i suppose you dont worry on that, i want to just know logic or understanding of this thing.

Are you gonna use paypal for paid membership? if so things would be easier: 0.Show him the tryial choice and the direct pay on the entrance.If he choses 30 days trial then 1.register him in database user table with the date of user registration or create a table of trials and put in it users and their registration date 2.When the user logs in back, check whether 30 days have expired if yes let him in if no ask him to pays fee->direct him to paypal paid membership In this process you don't have to ask for him paying directly or 30days trial, let him do one thing at a time.Give him alternatives on the site. Show him that he can chose. I think this will give you an Idea.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM