Web Socket

Kindly refer command below for Web Socket interation.


Item Description
Setup Details The Web Socket communication protocol was used to communicate between terminal and third party’s device.
URL The terminal URL is ws://[terminal_ip_address]:8080. The IP address can be obtained from the terminal. And the IP address change according to network.
Listener The listener only active at main page. If the terminal at different page, the terminal won’t listen to incoming message.
Error Recovery WebSocket will auto recover previous disconnected response when third party's devices restore the connection
Message Format POST request method was used this communication.



Request (Sample)

{
    "TransactionType": "1",
    "TransactionAmount": "1.00"
}



Response (Sample)

{
    "ResponseCode": "00",
    "ResponseDescription": "Approved",
    "TransactionType": "1",
    "TransactionAmount": "1.00",
    "TransactionMID": "000000000000001",
    "TransactionTID": "00000001",
    "TransactionSTN": "000001",
    "TransactionRRN": "123456789012",
    "TransactionBatchNo": "000001",
    "TransactionApplicationLabel": "Visa Cerdit",
    "TransactionCardNo": "412345******9999",
    "TransactionEntryType": "wave",
    "TransactionARQC": "8989898989",
    "TransactionTVR": "0000000000",
    "TransactionAID": "00000000003101",
    "TransactionCVM": "000000",
    "TransactionTSI": "00",
    "TransactionApprovalCode": "123456",
    "TransactionInvoice": "000001",
    "TransactionSchemeID": "01",
    "TransactionDateTime": "20220501110023"
}



Last updated on 5th Aug 2025