PayPal IPN PHP Script Template

(1 customer review)

$0.00

PayPal’s Instant Payment Notification (IPN) system is one of the most under-utilized tools they provide. With IPN enabled, PayPal’s system will automatically POST transaction data to a listener script that you have sitting on your server. This script can handle the data however you need (e.g. updating a database, sending out email notifications, etc.)

This PayPal IPN PHP script template will get you up and running very quickly and easily, and it comes complete with a simple admin panel for viewing your IPN data.

WordPress User Note

Check out our PayPal IPN for WordPress plugin instead!

 

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

  1. Extract contents of zip file and upload to a directory on your web server (eg. /paypal/ipn/)
  2. Open /admin/config.php and follow the commented instructions to fill in necessary values.
  3. Load /ipn/admin/install/ in a web browser and click the link to install the solution.
  4. 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)
  5. Load /ipn/admin/ in a web browser to access the basic control panel included with the template solution.

1 review for PayPal IPN PHP Script Template

5 star
100%
4 star
0%
3 star
0%
2 star
0%
1 star
0%
  1. 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

    0 out of 1 people found this helpful. Was this review helpful to you?
    • 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.

Add a review

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.