A service for testing the internet payment gateways of Iranian banks for development environments.
سرویسی برای تست درگاه پرداخت اینترنتی بانک های ایرانی در محیطهای توسعه
This service currently only supports Saman Bank (SEP).
Visit conf.go to see which environment variables are supported.
docker run -v "irbankmock-data:/opt/irbankmock/data" -p 13000:3000 ghcr.io/abramad-labs/irbankmock:0.0.9-r1
Download docker-compose.yml
from this repository and then execute:
docker compose up -d
This is a lightweight service used for testing purposes only. This is why there is no authentication or banking security protocols invloved. Do not expose this service into to the wilderness.
We decided to use github.com/glebarez/sqlite
instead of gorm.io/driver/sqlite
. The trade-off
was to lose a little bit of performance to gain a cgo
-free package.
This also enabled us to use distroless/static
instead of distroless/base
.
Read more:
- Run the backend (golang) server with:
go run .\cmd\server\main.go
- Run the frontend (typescript) server with:
cd .\web\app
andbun run dev
- Note that in development environemnt the frontend server proxies the requests it can't handle using nextjs rewrite config to the backend server. In production however, both backend and frontend are served using the same Go fiber server.
-
Implemented based on SEP_OnlinePG_Merchant Document_Minimal_Current.pdf
-
It's a terrible documentation, I know...