Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 638 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 638 Bytes

ShoppingCart4PayPal

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:

  1. Pick up a server with node.js/npm installed; run "npm install @paypal/checkout-server-sdk"
  2. mkdir paypalclient && cd paypalclient
  3. download index.js, ShoppingCart.html, ThankYou.html
  4. npm install paypalclient && npm install createtransaction && npm install capture_transaction
  5. node index.js
  6. Use a browser (chrome is recommended) to access http://<server_ip>:8080