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.
Create test accounts
You must create the following test accounts:
- PayPal Manager test account for Payflow Gateway
- PayPal Developer account
- PayPal Sandbox seller and buyer 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:
- Go to https://registration.paypal.com/welcomePage.do.
- Click Continue.
- Fill out the rest of the form. Select this option: I do not have a Processor. Setup test account.
- Choose a unique and case sensitive merchant login, for example,
- 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
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.
- Go to the developer portal and login with your developer account from the previous section.
- Under Sandbox, click Accounts and then click Create Account on the right hand side of the page.
- 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,
- Click Create Account.
- 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,
Link the test Manager account with the seller Sandbox account
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,
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.
- Express Checkout best practices — PayPal User Interface Standards help increase your conversion with your customers when they use PayPal Express Checkout and can help you optimize the customer experience for your integration.
- PayPal images and logos — PayPal buttons reference page.
- Express Checkout for Payflow Gateway reference guide.
- Payflow developer guide.