User Guide
Table Of Contents
Implementing an IPN Listener
20 June, 2009 IPN Guide
6. If the verified response passes the checks, take action based on the value of the txn_type
variable if it exists; otherwise, take action based on the value of the reason_code
variable.
7. If the response is INVALID, save the message for further investigation.
A sample test listener using PHP
The following listener sends email to the address specified in the ipn_email variable, as in
https://
your_host/live_ipn_mail.php?ipn_email=email_address. You can use this
listener as a starting point for your own listener; rather than send email, your listener could
take action based on the type of transaction.