Description
PayPal IPN PHP Script Introduction
I developed this PayPal IPN PHP script template for my own use years ago. It was never meant to be anything spectacular. It’s a very simple solution to get going with PayPal IPN in just a few minutes. I have personally used this solution in hundreds of projects and it has been downloaded millions of times since its release.
What makes this solution great is that you can immediately get started automating tasks based on PayPal transactions without wasting any time building the IPN solution itself. The PayPal IPN PHP script template is a perfect foundation for PHP IPN solutions.
Steps to Install the PayPal IPN PHP Script
- Extract contents of zip file and upload to a directory on your web server (eg. /paypal/ipn/)
- Open /admin/config.php and follow the commented instructions to fill in necessary values.
- Load /ipn/admin/install/ in a web browser and click the link to install the solution.
- Login to your PayPal account, click into the profile, and find Instant Payment Notification settings. Enable IPN and set the URL to http://www.yourdomain.com/paypal/ipn/ipn-listener.php (assuming you followed that directory structure)
- Load /ipn/admin/ in a web browser to access the basic control panel included with the template solution.
Garry –
This looks like a really useful solution for IPN. Does anyone have this implemented on PHP7?
Drew (store manager) –
It is old, but it was updated to work with PHP 7, so you should be good there.
Are you using WordPress by chance? If so, check out our plugin which basically gives you this same solution but inside of WP admin panel: https://www.angelleye.com/product/paypal-ipn-wordpress/
We also have the same for PayPal Webhooks, which are basically the new version of IPN: https://www.angelleye.com/product/paypal-webhooks-for-wordpress/
ron bottass –
WOW! You can send days hunting around on the web and youtube looking to assemble this all. Its all right here. Turn key. Thank God
Drew Angell (store manager) –
I’m glad you like it! I will warn you, it’s a bit outdated now. I don’t think this will run as-is on PHP 7, for example, but it shouldn’t take much to fix it. I’ve been meaning to update this accordingly, but I just haven’t been able to focus on it. Also, PayPal has Webhooks now, which is basically IPN for the REST services. If you’re going to be working with the REST API you may want to look at Webhooks instead of IPN.