index.js is the major entry point
ShoppingCart.html is the main page
PayPalClient.js is the basic module
create_transaction.js and capture_transaction.js are the two functional modules
The deploy a website:
- Pick up a server with node.js/npm installed; run "npm install @paypal/checkout-server-sdk"
- mkdir paypalclient && cd paypalclient
- download index.js, ShoppingCart.html, ThankYou.html
- npm install paypalclient && npm install createtransaction && npm install capture_transaction
- node index.js
- Use a browser (chrome is recommended) to access http://<server_ip>:8080