A demo for paypal payment. It demonstrates how to fulfill successful orders for an e-book using the PayPal REST API.
- Create a file ./server/.env and add PayPal sandbox account:
CLIENT_ID=<YOUR_CLIENT_ID>
CLIENT_SECRET=<YOUR_CLIENT_SECRET>
cd ./server
npm install
npm run dev
cd ./client
npm install
npm run dev
- Open http://localhost:5173 you will see