PHP Paypal IPN Integration Class

This free PHP script provides a simple method to interface with paypal and the paypal Instant Payment Notification (IPN) system. It is not a complete system but a single PHP class allowing the PHP developer more control. Included in the zip file is a demonstration PHP script called paypal.php which shows the basic usage of the class.

This class handles the submission of an order to paypal as well as the processing an Instant Payment Notification (IPN). Including the demonstration file, the entire "paypal system" consists of just 2 PHP scripts. Once is the class and one implements the class.

Update 09-09-2011 - This class is over 6 years old. I have recently written a new PHP IPN listener class for PHP5 which is more secure, more versatile, and simpler. A lot of you folks are still using this code, however, I highly recommend checking out the new one. See these links:

- Micah

Download:

Paypal IPN Script paypal-1.3.0.zip

If you enjoy this free PHP script and want to show your support, you can throw me a couple of bucks using paypal. Any donation, even just a buck, is always appreciated.

Version History

  • v1.3.0 [10.10.2005] - Fixed it so that single quotes are handled the right way rather than simple stripping them. This was needed because the user could still put in quotes.
  • v1.2.1 [06.05.2005] - Fixed typo from previous fix :)
  • v1.2.0 [05.31.2005] - Added the optional ability to remove all quotes from the paypal posts. The IPN will come back invalid sometimes when quotes are used in certain fields.
  • v1.1.0 [05.15.2005] - Revised the form output in the submit_paypal_post method to allow non-javascript capable browsers to provide a means of manual form submission.
  • v1.0.0 [04.16.2005] - Initial Version

Resources

Did you enjoy PHP Paypal IPN Integration Class? If you would like to help support my work, A donation of a buck or two would be very much appreciated.
blog comments powered by Disqus
Linux Servers on the Cloud IN MINUTES