The project utilizes the Braintree Node SDK and essentially provides a passthrough/proxy setup in order to operate Braintree server side scalls via Postman. It contains implementations of major Braintree API operations including:
- Customer
- Transaction
- ClientToken
- some others
- Node.js - Download and install node.js for your particular platform here. This application currently runs on v8.16.2 which works best with PayPal proxy and network security policies.
- Postman A relatively complete Postman collection can be found in the PayPal Postman Enterprise space here. For a quick import of the collection, the following is a direct shared Postman collection.
- Clone or download this repository to your local machine.
You can either download a .zip and uncompress the files locally, or clone the repository using Git. More detailed instructions can be found here. - Perform
npm install
within the project directory.
See the documents at the following location for a quick Heroku setup guide: https://github.paypal.com/NA-LE/paypal-jsv4-venmo#heroku-preparation
- Create a Braintree Sandbox developer account and PayPal sandbox REST application per your particular requirements.
- Customize your credentials:
- Local deployment: See ./config/local_example.js
- Remote deployment: Review the config documentation for your particular needs.
npm start
and then navigate your browser to http://localhost:3000/ (local deloyment only)