2004
Instant Payment Notification Manual
21
Copyright 2004 PayPal, Inc. All rights reserved
Testing tip 2: In your Website Payments button HTML code, add or modify the
return and rm variables as follows (replacing the URL with the URL for your website):
<input type=”hidden” name=”return” value=”http://www.mysite.com”>
<input type=”hidden” name=”rm” value=”2”>
Then, from the buyer account, click on the Website Payments button and complete
the transaction. Once you get to the PayPal Payment Complete page, you can use
your browser's View Source function to view the values of the posted IPN variables at
the bottom of the code.
Testing tip 3: You can put debugging print statements into your IPN script. PayPal
recommends creating a debugging mode of your script that you can turn off and on
by commenting or uncommenting a variable. Set the return variable in your Website
Payments button HTML code to point to your IPN URL. When you complete the
payment, the output of your script’s print statements will be sent to your browser.