Skip to main content
Security and Protection
Testing Instant Payment Notification
It is important to test IPN integration before "going live". The PayPal Sandbox provides an environment for testing without performing real payment transactions. It is also a good idea to test on the live PayPal system before putting a system into production.
Testing on the Sandbox
The PayPal Sandbox can be used to test most aspects of the PayPal system including Instant Payment Notification. To test on the sandbox:
Establish a developer account on Developer Central
Create a Personal account on the sandbox and add a credit card.
Create a Business account on the sandbox and add and confirm a bank account.
In your PayPal button and IPN handling script, use the URL
where you would normally use
Step through a payment using the Personal account email and password for log in.
A Note About Emails
In the PayPal API Sandbox, all of the participants in transactions (test users) are fictional and do not have true email accounts. To accommodate this, a special self-contained email system is integrated into the Sandbox. Each PayPal API developer has one inbox to which all email messages addressed to test users are sent. A developer only sees those emails addressed to test users linked to that developer. Emails to all test users linked to the developer appear in the same inbox. To view your Sandbox emails, Log in to Developer Central at
and Click the 'Email' tab. Your Sandbox generated emails can be found on this page. For more information, please refer to the API Sandbox User Guide, pp 15-16.
Testing on the Live System
It is a good idea to test on the live system to make sure the switch to the live system doesn't introduce any problems. Some things to consider when testing on live:
You will need access to a Personal account with a credit card linked and a verified Business account.
Switch from the sandbox URL
to the live site URL
Pre-fund the Personal account to avoid incurring charges on the credit card.
Test transactions can be as little as $0.01 USD.
Payments may be refunded resulting in a full fee credit.
It is good practice to log all IPNs received in a log file or database.
Copyright © 1999-2014 PayPal. All rights reserved.
Get to Know PayPal
How To Use PayPal
How to Setup an Account
How Much It Costs
PayPal Extras MasterCard
Shop Via Mobile
Send Money Online
To Your Teen
Via Your Mobile
Sell on eBay
Sell with Classifieds
Sell on Your Website
Products & Services