Set the Client.Webhook.url in the BPP Client directly to the Sandbox Address.
webhook implementation for the beckn sandbox
npm install
# watch mode
$ npm run start:dev
- Change the sandbox api url in
src/app.service.ts
as per your url. You need to update thehttp://127.0.0.1:3000/
part only.
const sandboxUrl = `http://127.0.0.1:3000/${body.context.action}`;
- Change the protocaol server bpp client's url in
src/app.service.ts
as per your url. You need to update thehttp://127.0.0.1:6001/
part only.
const bppClientUrl = `http://127.0.0.1:6001/${requestAction}`;
- You can change the port number inside
main.ts
file
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.