This folder contains example code for a standard PayPal integration using both the JS SDK and node.js to complete transactions with the PayPal REST API.
- Create an application
- Rename
.env.example
to.env
and updateCLIENT_ID
andAPP_SECRET
- Replace
test
inpublic/index.html
with your app's client-id - Run
npm install
- Run
npm start
- Open http://localhost:8888
- Click "PayPal" and log in with one of your Sandbox test accounts