Skip to content

johncade/square-api-demo

Repository files navigation

Square API Demo

Demo of the square API.

Usage

  1. Set the following ENV vars in your terminal:
$ export SQUARE_ACCESS_TOKEN=<TOKEN>
$ export NODE_ENV='develop` # If using a prod square location, set to production
  1. Download postman and import the postman collection here

  2. Start the node service:

$ npm run serve
  1. To create an invoice and send the invoice as an email:
1. Create a new customer, or select customer ID of an existing one
2. Create an order
3. Create an invoice associated with an order & customer
4. Publish the invoice

About

Express service that interacts with square

Resources

License

Stars

Watchers

Forks

Packages

No packages published