Project which highlights PayPal JavaScript implementations using various PayPal backend integration methods. Integration methods include:
- Default client side orders v2
- Server side Payments v1
- Server side Orders v2
- Server side NVP
- Server side BEAM + Orders v2
- Node.js - Download and install node.js for your particular platform here. This application currently requires a recent version of Node.js (tested with v12.14.0) due to to the use of certain interfaces.
- 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.
- Create PayPal sandbox REST application and NVP/SOAP credentials per your particular requirements.
- Customize your credentials:
- Local deployment: Update ./config/local.example.json with your credentials and rename to local.json.
- Remote deployment: Review the config documentation for your particular needs.
The PayPal Javascript SDK requires a valid clientId to load. Update the PP JavaScript SDK querystring with your clientId in the following:
npm start
and then navigate your browser to http://localhost:3000/ (local deloyment only)
See the documents at the following location for a quick Heroku setup guide: https://github.paypal.com/NA-LE/paypal-jsv4-venmo#heroku-preparation