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:- Before you send the first request, send an admin request to start the session.
-
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.
- After the last request, send an admin request to end the session.
Step 1: Start the session
-
Create a JSON object with the following data elements:
Data elements in JSON formatFor now, the
Operation.Variantcan only have WaitingScreen as value. This shows the waiting screen animation on the terminal after every request until you end the session. -
Encode the JSON object to Base64.
Base64 encoded message
-
Make a Terminal API admin request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Admin.
-
The standard
-
Check that the AdminResponse shows
Response.ResultSuccess.
Admin request - response
Step 2: Send requests
- Start sending the requests that you specified in the
operation.type, including input, display, and payment requests. - After every request sent, the screen shows the waiting screen for the amount of time specified in milliseconds in
UserInterfaceData.WaitingScreenTimeoutMs. - Every new request interrupts the waiting screen.
Step 3: End the session
-
Create a JSON object with the following data elements:
Data elements in JSON format
-
Encode the JSON object to Base64.
Base64 encoded message
-
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.
- The AdminRequest object with:
-
Check that the AdminResponse shows
Response.ResultSuccess (see Step 1).
After the session ends, the waiting screen no longer shows after sent input, display, or payment requests.
