Test in the sandbox

The sandbox environment behaves similarly to the production environment. However, follow these guidelines when testing the PayPal Here SDK in the sandbox environment:

  • Only use merchant accounts that are created through the Developer Dashboard.
  • PayPal does not provide test payment cards. If you need a card number for testing, this process is outlined here.

PayPal Here SDK and the sandbox

The GitHub repo for the SDK contains a sample app for each available platform. Each sample app will use an instance of our sample server. To run it:

  1. Load up the sample app.
  2. Change the environment to point to sandbox instead of Live.

Below are instructions to get started with the sample apps for iOS, Android, and Web.

Note: If you are integrating with the Chip Card Reader, pair it via bluetooth to your device prior to running the sample apps for iOS and Android. For Web, simply have the pre-configured reader plugged in via USB.

iOS

The sample app for iOS can be found on our GitHub. To use it:

  1. Load the app into Xcode and run it.
  2. Make sure the environment selector at the top is set to sandbox before you click Initialize Merchant.
  3. Set up developer permissions, which enables you to grant permission to the sample app to process on your behalf.
  4. When you are asked to log in, use the email and password you set when you created your sandbox account.
  5. Because this example uses the sample server, we've appended ?returnTokenOnQueryString=true to the URL so it returns the raw values to initialize the SdkCredential class instead of returning the default composite token.

Android

Find the sample app for Android on our GitHub. To use it:

  1. Load the app into Android Studio and run it.
  2. Make sure the environment selector at the top is set to sandbox prior to clicking Initialize Merchant.
  3. Set up developer permissions, which will allow you to grant permission to the sample app to process on your behalf.
  4. When you are asked to log in, use the email and password that you set when you create your sandbox account.
  5. Because this example uses the sample server, we've appended ?returnTokenOnQueryString=true to the URL so returns the raw values to initialize the SdkCredential class instead of returning the default composite token.

Web

The sample code for Web can be found here.

Next

Onboard merchants.