This class is usefull to process Instant Payment Notification (IPN) from Paypal.
See www.paypal.com for more information about IPN.
Note : This class requires cURL PHP module.
So... how should I use this ? This requires that:
a) you already know what IPN is
b) you setup your Paypal account so that IPN are sent to a URL on your website
In this example, let's consider it is http://yourserver.com/backoffice/ipn.php
1) Paypal server posts a request to http://yourserver.com/backoffice/ipn.php
2) Create the IPN object: $pp = new paypal_ipn ();
3) Provide the IPN object with 2 functions: the first one will be called as soon as you receive the post. The second one will be called when Paypal's server
confirms or denies your response.
$pp->set_process_functions ("my_pre_processing", "my_post_processing");
4) Pass the POST table to the Paypal processor
$pp->process_notification ($_POST, true);
5) The "my_pre_processing" function is automatically called
6) The class calls-back Paypal secure server, using cURL and Paypal server
confirms or denies your response.
7) The "my_post_processing" function is automatically called
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Good (82.4%) |
Sufficient (75.0%) |
- |
Sufficient (61.8%) |
Not sure (54.4%) |
- |
Sufficient (60.3%) |
798 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
| Link |
Description |
| French Tutorial |
A french tutorial. paypal_ipn class was developped to provide easy IPN management on this website's Deluxe Edition (under dev). |

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|
| File |
Role |
Description |
example.php |
Example |
Usefull for testing i_paypal.php |
i_paypal.php |
Class |
The file containing the class to be included |
virtual_paypal.php |
Test |
A fake and random (either INVALID or VERIFIED) Paypal server response |