Heartbeat Feature

To ensure the terminal is still connected and responsive, we’ve introduced a Heartbeat feature. This feature allows continuous monitoring of the terminal’s connectivity status during an active session.

Heartbeat Request:

The ECR sends the following heartbeat request periodically:

<Heartbeat>
 <Message>ping</Message>
 <Timestamp>1256953732</Timestamp>
</Heartbeat>

  • Message: The value "ping" acts as a simple trigger to check if the terminal is active.
  • Timestamp: This represents the exact time the request was sent, which can be useful for tracking
    latency and ensuring synchronization.

📘

Why It’s Important:

The heartbeat helps detect any disconnection or downtime in real time. If no response is received within a
defined period, the system can trigger alerts or attempt reconnection automatically. This is crucial for
maintaining transaction reliability, especially in high-volume environments.