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

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:

  • 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.