*Node.js (>=16.x)
*npm
*Docker(optional)
create .env and add following variables
SERVER_URL=localhost PORT=3000 AUTH_FULL_URL=https://sso.omno.com/realms/omno/protocol/openid-connect/token OMNO_CLIENT_ID=api-key OMNO_CLIENT_SECRET=api-secret OMNO_BASE_URL=https://api.omno.com TRANS_CREATE_URL=/transaction/h2h/create
run in development env.
-npm run dev
run in development env.
-npm run build
-npm start
If using Docker, build and run the container:
-docker-compose up --build
POST /create-transaction - Initiates a new transaction.
POST /webhook - Handles incoming webhooks from Omno.
POST /callback - Handles incoming webhooks success callback.
POST /callback-fail - Handles incoming webhooks failed callback.