views:

63

answers:

1

I search a script with follow features:

  1. The user can pay the full functional website for some time (week, month, six months, a year - for example).

  2. After payment, the script pass a parameter that the user has paid, and the user data insert into the database mySQL (name, start subscription date, the subscription end date).

  3. Each time when user is authenticated on the site checking valid or not the subscription.

  4. For some time before the end of the subscription script notifies the user via e-mail that the subscription ends (for example, a message comes once a day for a week before the end of the subscription).

  5. If the user does not prolong their subscription, then script closes access to the site. If prolongs, then change the values in the database.

Maybe there are already existing solutions?

A: 

Look into PayPal IPN

Here is sample code for PayPal IPN, even though it is for Joomla you can do minor tweaks to it (remove lines 37-51) and you will have fully functional IPN code. Obviously you will have to code your program logic.

Alex
Thank you. But this is a very simple script at first glance. Is it meets my requirements?
Astraport
Alex