Express Checkout with Payflow Gateway - Testing

To test your integration, PayPal provides a Sandbox testing environment to verify that your integration is working properly before releasing it to your buyers. The Sandbox environment is a duplicate of the live PayPal environment, except no money changes hands.

Integration steps

  1. Create test accounts.
  2. Handle errors (Optional).
  3. See additional information (Optional).

Create test accounts

You must create the following test accounts:

Important: Once you have created these accounts, you must link your PayPal Manager test account to your seller Sandbox account.

Create a PayPal Manager test account

To create a PayPal Manager test account:

  1. Go to https://registration.paypal.com/welcomePage.do.
  2. Click Continue.
  3. Fill out the rest of the form. Select this option: I do not have a Processor. Setup test account.
  4. Choose a unique and case sensitive merchant login, for example, payflowtest.
  5. On the next page, do not click Continue which activates the account and bills you. Instead, click the blue button labeled Login to PayPal Manager, which creates a test account.

You now have Payflow test login credentials, which you will use to populate the following fields in your requests:

```PARTNER=PayPal VENDOR=<your-login-ID> USER=<your-login-ID> PWD=<your-password>```

Note: Your login ID is case senstive. Also, pass your login ID in both the VENDOR and USER fields.

You can login to your gateway account at the PayPal Manager website.

Create a PayPal Developer account

The PayPal Developer account allows merchants and developers to create, reset and delete Sandbox accounts. Additionally, all emails generated by the Sandbox are delivered to a special mailbox that is only accessible from the PayPal Developer portal. If you have a live PayPal account, you can sign in using those credentials. If not, create a new account and login. Use the Developer portal to manage all your PayPal development related work.

Create PayPal Sandbox seller and buyer accounts

For testing PayPal Express Checkout, you will have to create at least two sandbox accounts on the developer portal, a seller account and a buyer account.

  1. Go to the developer portal and login with your developer account from the previous section.
  2. Under Sandbox, click Accounts and then click Create Account on the right hand side of the page.
  3. For a Seller Account, set the account type to Business. Enter a real or fake email address and a simple password that is easy to remember, such as, 123456789.
  4. Click Create Account.
  5. To create a buyer account, follow most of the same steps used to create a seller account above. Set the account type to Personal instead of business and enter a high balance amount, such as, 5000.

Link your seller Sandbox account to your Manager test account. Provide your seller email address as well as your Manager test login ID to your PayPal Integration Engineer, who can link both the accounts for you.

Credit Cards for Testing in the Sandbox

In your buyer or personal Sandbox account, you can enter generated test credit card numbers for use in your test transactions. You can use credit card numbers generated from from https://www.getcreditcardnumbers.com/.

In the expiry date field, ExpDate, enter any date in future in the format mmyy, such as, 1220. In the card security code field, Cvv2, enter a number such as, 111, 123 or 1234.

Handle errors

In some cases, if the transaction does not go through due to buyer funding issues that the buyer can correct, you can notify the buyer of the issue.

Implementing 10486 error redirect

If you get an error on the final DoExpressCheckoutPayment API call with the code 10486, it is because of lack of funds in the funding source selected by the buyer. In such a scenario you should redirect the buyer back to PayPal. See How to recover from funding failure error code 10486 in Express Checkout.

Additional Information