We have created example repositories on GitHub with end-to-end integrations for each server-side language that Braintree supports. These examples use our Drop-in UI for web for the client-side integration.
The end-to-end example integrations are made to run on a local server or on Heroku. You'll need a Braintree sandbox account and a couple of things handy:
- Merchant ID
- Public key
- Private key
For details on where to find these values, see our support articles.
To set up an example locally, follow the setup instructions found in the project's README.
Once you have the example repository up and running in your chosen server language, you should be able to run some test transactions.
To test PayPal transactions, follow the instructions for linking a PayPal sandbox account with your Braintree sandbox account. You will then be able to go through a sandbox PayPal flow through the Drop-in UI and log in to PayPal with your sandbox credentials.