/beckn-sandbox-webhook

webhook implementation for the beckn sandbox

Primary LanguageTypeScript

THIS PROJECT IS NO MORE REQUIRED.

Set the Client.Webhook.url in the BPP Client directly to the Sandbox Address.

beckn-sandbox-webhook

webhook implementation for the beckn sandbox

Installation

npm install

Running the app

# watch mode
$ npm run start:dev

Configure

  1. Change the sandbox api url in src/app.service.ts as per your url. You need to update the http://127.0.0.1:3000/ part only.
const sandboxUrl = `http://127.0.0.1:3000/${body.context.action}`;
  1. Change the protocaol server bpp client's url in src/app.service.ts as per your url. You need to update the http://127.0.0.1:6001/ part only.
const bppClientUrl = `http://127.0.0.1:6001/${requestAction}`;
  1. You can change the port number inside main.ts file

Make webhook server public

Make the webhook Network server publicly accessible by using tools like localtunnel, ngrok, loophole. This public url will be used in config/default.yml's webhook url.