A short and simple API functions for Nicepay
-
Clone the repo:
git clone https://github.com/dickygiancini/kaspin-api
-
Install all the dependencies
cd kaspin-api go mod download
-
Config: Rename
.env-example
to.env
and setup all the necesary environment -
Build: After that, go run:
go build
-
Running After finished building, run the executable file in terminal and go to
localhost:3000/{any-link}
There are 3 routes to be tested:
localhost:3000/register
This will register a new transaction to NICEPAYlocalhost:3000/payment
This will send a payment request to NICEPAYlocalhost:3000/status-inquiry
This will check the status in NICEPAY