Jump to content

PHP and Paypal IPN Subscription and recurring payments


asgsoft

Recommended Posts

Hi

 

I am about to start a membership website where you have to subscribe to gain access.

 

I have a user registration system in place but how do I encoperate Paypal IPN Subscription and recurring payments in it?

 

Any Ideas or samples or tutorials out there?

 

Thanks

I have been working on a similar system for my site, although I don't have it up yet, I have friends running it on their sites and it works well. What I have done is, first workout the chain of events. like this:

 

pay.php >>> www.paypal.com >>> done.php

 

on pay.php you have a paypal button that you make in merchant tools in your account and put the coding for that button on pay.php, then the user clicks the button, is sent to paypal, pays for the goods and/or services, and when you make the button you make it send the user back to done.php to show it was successful, and on done.php you have the queries that are going to run, example: update the users "authlevel" and so on. but you also need security for this to work or people can just put done.php in their browser and they have recieved the bonus's for free. so you can either use apache's mod_rewrite, or do a "redirection check" to see if the user has come from paypal, and if not send them to a cancel.php page or whatever. I am still currently working on the security but I hope this gives you an idea of how it can be done, without using IPN. but just common sense  ;)

 

Regards ACE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.