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 updatePAYPAL_CLIENT_ID
andPAYPAL_CLIENT_SECRET
- Replace
test
in client/checkout.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