Test REST API transactions

PayPal provides a Dashboard and Sandbox environment for you to review transactions related to your API calls. The Dashboard lets you see test transactions tied to your account, while the Sandbox Manager lets you create test buyer and seller accounts. When you sign up, you’ll automatically be given a Business account in the Sandbox that is tied to your developer account.

Note: Before you read this guide, you should first register and learn how to make your first call.

Test credit card payments

Direct credit card payment and related features are restricted in some countries.

With each successful API call, the transaction appears in the Recent Transactions tab of the dashboard.

  1. Use the API to create a credit card payment.
  2. Log into your account.
  3. Go to the Dashboard tab to review either test or live transactions.

Note For Sandbox calls, you can use any fictitious credit card number that complies with “mod 10”, including credit cards provided in your Sandbox test accounts.

Test PayPal payments

To test PayPal payments, you’ll need a Personal account in the Sandbox Manager to see the transaction from the perspective of the buyer.

  1. Log into your account.
  2. Go to the Applications tab.
  3. Click the Sandbox Accounts link on the left side of the page.
  4. Click the Create Account button.
  5. Fill the form, ensuring that you select the Personal radio button to create a buyer account.
  6. Click the Create Account button at the end of the form.
  7. Use the API to create a PayPal payment.
  8. When buyer approval is required for the PayPal payment, use the Personal account to approve the payment.
  9. Use the API to execute the completed payment.
  10. Log in to the Sandbox using the Personal account to review the details of the completed payment.

Learn more about using the PayPal REST API to accept PayPal payments.

What’s next: