Testing and Go Live
Test your integration by using the Braintree sandbox access token generated in your PayPal Developer Dashboard. This will allow you to:
- Create sandbox buyer accounts — these are PayPal accounts that will allow you to test the PayPal checkout flow
- Send transaction data to PayPal's sandbox environment
After you have the above set up, you can run through the various transaction methods (submit for settlement, refund, void) with the payment method nonce your server receives after the sandbox buyer completes the checkout flow. Be sure to check the result objects for each of the calls you make.
Follow these steps to transition from working in a sandbox setup to creating live transactions with your production account.
To obtain your Braintree production credentials:
- Log into your PayPal console and navigate to your Access Token page.
- Click "Request Credentials". New Braintree SDK credentials will be generated for your account. You can display previously generated credentials by clicking "Show".
- In your server code, update the access token used to construct your gateway object with the production access token.
- Enable additional currencies, if needed.
No client updates needed
Your client obtains its client token from your server, which is all the configuration it needs.
Test transactions in production
It is important to test your production account by creating a couple of low-value transactions. Be sure to submit the transactions for settlement, and then confirm that the funds have deposited into your bank account. This typically happens a few days after they have settled.