/OAuthNodeExpress

OAuth implementation using a Node/Express backend.

Primary LanguageJavaScript

OAuthNodeExpress

Requirements

Set Up

Follow these instructions for creating a Clover web app and installing it to your sandbox test merchant. When creating the app, select the permissions you want the OAuth token to have.

  • On the app's Settings page, note App ID and App Secret. Set them as appID and appSECRET at the top of index.js.
  • Under Web Configuration, set Site URL and CORS Domain to http://localhost:5000.

Run:

  • npm install
  • npm run server

In your web browser, visit http://localhost:5000/.