Skip to content

kvara11/transaction-api

Repository files navigation

Transaction API Integration with Fastify Framework

Project Setup

*Node.js (>=16.x)
*npm
*Docker(optional)

Setup:

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

Swagger:

/api-docs

ROUTES:

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published