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:
- PHP-PayPal-IPN (Source code on Github with a basic example.)
- How To Implement an Instant Payment Notification listener script in PHP (Tutorial)
- Micah
Download:
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



