2006

Table Of Contents
June 2006 29
Testing PayPal Website Features
Verifying a Test Refund
z PayPal Order Management Integration Guide at
https://www.paypal.com/en_US/pdf/PP_OrderManagement_IntegrationGuide.pdf
ipn_test Variable
The Sandbox sets the variable ipn_tes t with a value of 1 in the HTTP response back to your
IPN page. The purpose of this variable is to clearly differentiate between live and Sandbox
IPN, so you can write your processing programs to work with either live or Sandbox IPN. If
the test_ipn variable is not present in the HTTP response, you are working with Live PayPal.
To enable IPN for a test user:
1. Log in to Developer Central, click the Sandbox tab, select the desired test user, and click
Launch Sandbox.
2. Click the Profile subtab.
3. Click the Instant Payment Notification Preferences link in the Selling Preferences
column.
4. Click Edit.
5. Click the checkbox and enter the URL at which you would like to receive your IPN
notifications.
6. Click Save.
7. Install IPN on your web server. You might want to start with one of PayPal’s source code
samples available at
https://www.paypal.com/ipn under the Code Samples section. There are
source code samples for the following programming languages and development
environments.
ASP/VBScript
ColdFusion
Java/JSP
PERL
–PHP
Verifying a Test Refund
To verify a test refund, you must have already made a test payment.
1. Log in to Developer Central.
2. Click the Email tab.
Your Sandbox inbox shows refund confirmation email messages for the seller and buyer.
3. To further verify that the refund was successful:
Check your Web server for IPN notifications related to the refund.