PHP Paypal IPN Class
NEW VERSION
|
I rewrite the class, release the Version:1.3.1 v1.3.1 [06.25.2008] - more strict ipn validation,ssl fsockopen(),sandbox option. |
Donate for this class development, Thanks! |
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.
Original Author: Micah Carrick
Website: http://www.micahcarrick.com
UPDATE DESCRIPTION
More Strict IPN Validation: add ipn_status and receiver mail validation.
- $p->ipn_status //get the ipn validation status detial.
SSL fsockopen():change the fsockopen http(80) to ssl(443) //paypal ipn (80) support unstable.
Sandbox Option:Create a "sandbox" account for a buyer and a seller. This is just a test account(s) that allow you to test your site from both the seller and buyer perspective. The instructions for this is available at https://developer.paypal.com/ as well as a great forum where you can ask all your paypal integration questions. Make sure you follow all the directions in setting up a sandbox test environment, including the addition of fake bank accounts and credit cards.
- $p = new paypal_class (true); //open sandbox
- $p = new paypal_class(false); //live use
Download 1.3.1
PayPal PHP CLASS (13.4 KiB, 529 hits)
| -欢迎为本文评级 |
相关日志 |
本文读者也关心以下内容:
|















































Leave a reply