Many merchants want to test their PayPal integration before going live. This article will detail the steps required to setup a PayPal sandbox test account.
To test, you will need two sandbox accounts. The first will be your business account, which you will integrate with Braintree. The second will be buyer account, which is the test account you will use to simulate a customer purchase.
You first want to navigate to the PayPal Developer site.
Once there, click the
Login to PayPal using your business account credentials:
You will land on the Accounts page of the developer site. Click the button.
Fill out the sandbox account details. Be sure and select Business (Merchant Account)
Once you have filled out all the info, click the button.
If successful, you will be redirected to the Accounts page where you will see your new account:
The processing status will turn to completed after a few minutes.
Now we must setup our API credentials so Braintree can use your PayPal test account for simulating transactions.
On the navigation menu, click the My Apps & Credentials link.
Scroll down to the REST API apps section and click the button.
Give your app a name and select the test business account you created in the previous steps.
Once you create the app, you will be directed to the App Credentials page.
Now that we have our test PayPal credentials, lets login to the Braintree Sandbox environment and enter our info.
Once logged in to the Braintree Sandbox site, navigate to the Processing page which is a sub-menu of the Settings link.
You should be on the Processing Options page.
Click the slider and it will turn green, then direct you to the PayPal configuration page.
Enter your PayPal test account info on this page and click the button.
PayPal will now show as active.
You should now create another test account but make this one a Buyer account instead of a merchant account.
Once this is complete you can now test your PayPal integration on your Wordpress site.