This topic is locked

How do I charge subscriptions

4/9/2007 10:11:08 AM
PHPRunner General questions
I
ictaylor author

Hi,
I want to be able to charge users who register a small amount of money each month to cover bandwidth..... say $1 I would like to be able to integrate my paypal account so that when people register they are asked to signup for a monthly subscription, the first payment of which would come out straight away before they had access to my users area which contains my downloads...... ie their username and password would be inactive until they pay and then gets activated automatically without the need for my intervention when they pay.
how do I do this?

Sergey Kornilov admin 4/9/2007

You'll need to check PayPal IPN in order to implement this schema:

https://www.paypal.com/ipn
Here is how it works:

  • customers should login first to your website
  • they click on "Pay via PayPal" button that takes them to PayPal payment page. You pass customer's UserID to that page as a parameter
  • after payment is processed you receive a notification from PayPal via IPN and update your database
  • customer is redirected back to your website (thank you page) where you check payment status in the database and unlock access to all pages.
    Locking/Unlocking some pages can be implemented via User Group Permissions.