This folder contains example code for version 2 of a PayPal advanced Checkout integration using the JavaScript SDK and Node.js to complete transactions with the PayPal REST API.
Version 2 is the current advanced Checkout integration, and includes hosted card fields.
- Create an application
- Rename
.env.exampleto.envand updatePAYPAL_CLIENT_IDandPAYPAL_CLIENT_SECRET. - Run
npm install - Run
npm start - Open http://localhost:8888
- Enter the credit card number provided