Testing Classic API Calls

The PayPal Sandbox is a self-contained, virtual testing environment that mimics the live PayPal production environment. It provides a shielded space where you can initiate and watch your application process the requests you make to the PayPal APIs without touching any live PayPal accounts.

The following sections describe how to test your applications with the Sandbox:

The testing process

Test your appls creating a Sandbox account for each entity represented in your PayPal transactions. When testing, use the test accounts in place of all the live accounts you will use while processing live transactions.

  1. Create a PayPal account and log in to the Developer website at developer.paypal.com.
  2. Create a set of virtual Sandbox test accounts.
  3. Format your PayPal API requests using the details from your test accounts and run them against the Sandbox endpoint(s).
  4. Review the responses and modify your application as necessary.
  5. When your application is fully functional and free of bugs, go live by updating the API credentials and endpoint targets.

Tips on creating your PayPal developer account

When you create your developer account, PayPal does a verification check by sending an email to the address you specied. Enable your account by responding PayPal’s email. If you don’t receive the verification email within a few minutes after signing up, check to see that it hasn’t been blocked or diverted to a spam folder.

Once your account is enabled, access the Sandbox functionality by logging in to the PayPal Developer website using your developer account credentials.

When creating your PayPal developer account, consider creating an account that you don’t mind sharing with others on your development team. This way, you can share your Sandbox test accounts without compromising the security of your personal PayPal account.

Important:  When coding your PayPal application, make sure that it behaves in accordance with the PayPal application policies and guidelines.