- Create an application
- Add your app's
CLIENT_ID
andAPP_SECRET
to the.env
file - Replace
test
inpublic/index.html
with your app's client-id - Run
npm install
- Run
npm start
- Open http://localhost:3000
- Click "PayPal" and log in with one of your Sandbox test accounts or generate a new credit card.
See a hosted version of the sample
- Advanced Integration: https://developer.paypal.com/docs/checkout/advanced/