HTTP connector to PrivatBank POS-terminals via ECR protocol (JSON based) by TCP connection
904
This connector is a service that, on the one hand, detects a terminal and exchanges commands with it according to the protocol PrivatBank, using a TCP connection for this. On the other hand, it is implemented HTTP server that can receive / send JSON requests and broadcast them to the terminal
Go to GitHub
docker run -d -e TERMINAL_IP='192.168.0.111' -p 3333:3333 --rm subsan/http2privat_json:latest
GET => /checkCheck is TCP-connection up, send PING command to terminal and broadcast response
GET => /command (request json in body)Send input json (in body) to terminal, waiting next response and broadcast in to response.
On timeout (TIMEOUT_TRANSACTION) send to terminal interrupt command and response Transaction timeout error.
Only one command at a time is supported. For other requests during the execution of the command, the response
is error Another transaction active.
/command endpoint (default 10m)Method string `json:"method"`
Step int `json:"step"`
Params map[string]string `json:"params"`
Error bool `json:"error"`
ErrorDescription string `json:"errorDescription"`
Content type
Image
Digest
sha256:d5df31ca4…
Size
8.6 MB
Last updated
7 months ago
docker pull subsan/http2privat_json