Testing PayPal transactions

You can test PayPal transactions in our MITE environment. You’ll need a PayPal sandbox account for this, which is different from the account used to process live transactions.

PayPal make periodic changes to their web sites, including their developer portal. The pages and user interface elements you see when logged in may differ from those described below. If this applies to you, and you’re having trouble working out what the corresponding steps are, consult the PayPal developer documentation, or contact PayPal for support.

Log in to the PayPal developer portal

Go to https://developer.paypal.com and click Log in to Dashboard at the top right of the page.

You can log in with an existing PayPal account, or you can create a new one just for testing.

Once logged in, you’ll see a variety of tools and documentation regarding PayPal integration options, as well as using the sandbox environment itself.

Find your sandbox accounts

From the top menu, choose Testing Tools → Sandbox Accounts, or look for an equivalent option from the menus available.

By default, PayPal will create a pair of new sandbox accounts for you:

  • a Personal account, which emulates a buyer’s account – this is what you’ll sign in to to approve payments while testing
  • a Business account, which emulates your business (merchant) account

You can create additional sandbox accounts as required to suit your testing needs. From the account list, pull down the menu next to each one and choose View/Edit account. From here, you can view and set various useful properties of an account. For example, you can edit the balances on each account to ensure there are adequate funds for testing payments and refunds, and you can switch your Business account into negative testing mode, so you can test various failure scenarios. You can also view the system-generated password for each account, and change it if you’d like.

You will need the password for the Business account to complete the steps below. You should also note the password for the Personal account, which you’ll use to log in when testing payments.

Give Pay360 access to process on your behalf

You need to enable Pay360 as a third-party provider with limited access to your sandbox Business account so that we can process payments through it.

  1. Log in to your sandbox account at https://sandbox.paypal.com
    Use the account name and password for the Business account, as described above
  2. Under the user menu (top right), choose Account settings
  3. On the “Account access” page, click Update next to the API Access option
  4. On the “Your payment API credentials” page, under “PayPal API → Pre-built payment solution”, click Grant API permission
  5. On the “Add New Third Party Permissions” page, enter paypoint1605_api1.paypoint.net as the username and click Lookup
  6. On the next page, select the following permissions:
    • Use PayPal Express Checkout to process payments
    • Issue a refund for a specific transaction
    • Authorise and capture your PayPal transactions
    • Obtain information about a single transaction

    then click Add.

  7. The “Manage Third Party Access” page should confirm the permissions have been granted

In the future, if you want to revoke Pay360 access or we ask you to grant additional permissions, you can return here to edit our access.

If you see an error prompting you to “Enter a valid API username”, make sure you’re using the API username for sandbox processing, which is paypoint1605_api1.paypoint.net. This is different from the one used for live processing.

Tell us about your PayPal account

Once your sandbox account is ready, contact us so that we can enable PayPal on your MITE account. You’ll need to tell us the email address associated with the Business account, as well as the currencies that it can accept.