Skip to main content
You can create a flow that spans multiple requests, including input, display, and payment requests. To do so, you send an admin request to start a session. The terminal shows the waiting screen after every input, display, and payment request until you end the session. This solves the issue that customers may think something is wrong if they provide input and then do not see anything happening on the terminal. The waiting screen is shown for a set amount of time, or until the next request is sent to the terminal. This is useful for payment flows where someone needs to interact with a terminal, like Pay at Table. It shows that the POS system is not unresponsive, it is just busy doing something that takes a bit of time.

How it works

You need to send two separate admin requests to mark the start and the end of a session. All requests in between belong to a single session. To include multiple requests in one session:
  1. Before you send the first request, send an admin request to start the session.
  2. Send multiple requests, including input, display, and payment requests.
    When you send an input request, after the user provides input on the terminal, the waiting screen shows for the set amount of time. With display and payment requests, after showing your data on the screen, the waiting screen shows. If you send another request before the waiting screen expires, the waiting screen disappears.
    WaitingScreen
  3. After the last request, send an admin request to end the session.

Step 1: Start the session

  1. Create a JSON object with the following data elements: Data elements in JSON format
    For now, the Operation.Variant can only have WaitingScreen as value. This shows the waiting screen animation on the terminal after every request until you end the session.
  2. Encode the JSON object to Base64. Base64 encoded message
  3. Make a Terminal API admin request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Admin.
    Admin request - start session
  4. Check that the AdminResponse shows Response.Result Success.
    Admin request - response

Step 2: Send requests

  1. Start sending the requests that you specified in the operation.type, including input, display, and payment requests.
  2. After every request sent, the screen shows the waiting screen for the amount of time specified in milliseconds in UserInterfaceData.WaitingScreenTimeoutMs.
  3. Every new request interrupts the waiting screen.

Step 3: End the session

  1. Create a JSON object with the following data elements: Data elements in JSON format
  2. Encode the JSON object to Base64. Base64 encoded message
  3. Make a Terminal API admin request like you did in Step 1, including:
    • The AdminRequest object with:
      • ServiceIdentification: The Base64-encoded JSON object to end the session.
    Admin request - end session
  4. Check that the AdminResponse shows Response.Result Success (see Step 1).
You can send an admin request to end the session while the waiting screen is still on the display. This does not interrupt the waiting screen like other requests.
After the session ends, the waiting screen no longer shows after sent input, display, or payment requests.

See also