Skip to content

Example webhook for Ordering Stack for loyality actions (adding points after transfaction, adding points after user registration)

Notifications You must be signed in to change notification settings

orderingstack/wallet-webhook-example

Repository files navigation

wallet-webhook-example

This is sample Ordering Stack webhook which process order, calculates points from order and adds points to users wallet.

It works with Azure Functions but can be simply adapted to any other serverless function provider or run as standalone service.

devleopment

for using nodemon to restart local version when changing code use npm start watch and to start local instance: npm start:func

You also need to add local.settings.json file containing parameters (they need to be added to Azure func instance):

  • TENANT - id of the tenant
  • WALLET_USER_NAME - name of user with WALLET API OPERATIONS role
  • WALLET_USER_PASS -
  • BASE_URL - for test env: https://ordering.3e.pl
  • BASIC_AUTH - example: b3JkZXJpbmc6c2VjcmV0

testing

you can use sample request in file: rest\call-as-a-webhook.rest with REST plugin for vscode

About

Example webhook for Ordering Stack for loyality actions (adding points after transfaction, adding points after user registration)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published