Test REST API transactions

PayPal provides a sandbox environment for you to create test accounts and review transactions related to your REST API calls.

The Sandbox Transactions dashboard lists test transactions that are tied to your sandbox account. The Live Transactions dashboard lists transactions in the live environment.

Use the dashboards to view the call history for a specific app or all apps. Both dashboards lists the API calls made by apps with related transaction details. The dashboards show transaction details, such as the date, type, status, amount of a transaction and API call details, such as the request and response messages.

Prerequisites

Create test buyer and merchant accounts in the PayPal sandbox. To create a test buyer account, select the Personal account type. To create a test merchant account, select the Business account type. For information, see Create a test account.

Before you continue, learn how to make your first call.

Test credit card payments

Note: Some countries restrict direct credit card payment and related features.

The dashboard shows transactions for successful API calls.

  1. Create a credit card payment.
  2. Click Log In to log in to your PayPal account.
  3. To review sandbox transactions, go to the Sandbox Transactions dashboard.

Note: For sandbox calls, you can use the credit card numbers provided in your sandbox test accounts.

For more information about credit card payments, see Accept credit card payments.

Test PayPal payments

To test PayPal payments, you must be able to see transactions from the perspective of the buyer.

  1. Click Log In to log in to your PayPal account.

  2. Create a PayPal payment.

  3. To approve the payment, enter the email address and password for your buyer account.

  4. Execute the payment.

  5. To review the details of the completed payment, log in to your buyer account on the Sandbox test site.

For more information about PayPal payments, see accept PayPal payments.

Additional information