Free PayPal IPN Script
Here is a simple IPN script that will verify an order, send the buyer to a “thank you” page or error page and send an email on successful payments. It doesn’t protect any files or work for more than one product. It’s really basic but very useful for some purposes.
If you need something more advanced, I suggest you try DL Guard. Otherwise, enter your primary email in the form below to download the free PayPal IPN Script.
Set up and usage is really simple.
The first thing you do is edit pp_123.php with your details.
It’s commented pretty well and should be self-explanatory. With the exception of “Merchant account ID.” It can be found in your PayPal account under “Profile -> More.”
The included cancel.php & unverified.php files can be edited to look like your site. Of course in pp_123.php you can define different names or whatever.
Don’t edit the contents of thankyou.php. It must remain the same for the verification to work. You can rename it if you want but make sure the pp_123.php has the correct name if you do.
Take a look at the code in demo.php to see how to do your order links.
That’s about it.
If you have questions ask in the comments below.