Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.well-known
bin
routes Fixed transaction and error output (#119) Jan 28, 2019
views
.gitignore
README.md Updated node README (#127) Mar 21, 2019
app.js
config.json Fixed node.js payment example (#70) Aug 1, 2018
package.json Fixed node.js payment example (#70) Aug 1, 2018

README.md

Payment processing example: Node JS

  • Open config.json and fill in values for squareApplicationId & squareAccessToken & squareLocationId with both your sandbox and production credentials. WARNING: never upload config.json with your credentials/access_token.

  • Ensure you have npm installed (npm -v in your terminal). If not please follow the instructions for your OS: https://www.npmjs.com/get-npm

  • Open your terminal and type the following to install the packages:

npm install
  • Then to run the server in production mode:
npm start

Or to run in sandbox mode:

npm test
You can’t perform that action at this time.