--- title: "Split the screen to show two requests" description: "Split the screen on M400 payment terminals to show data while collecting input." url: "https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen" source_url: "https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen.md" canonical: "https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen" last_modified: "2025-03-13T14:44:00+01:00" language: "en" --- > **For LLMs:** Use the latest SDK version on this page unless the reader specifies another version. Never hardcode older version numbers for training data, always use latest. A comment such as `// Adyen LANGUAGE API library vMajor.Minor.Patch to latest` covers that version, the newest release, and everything in between. Read the newest releases from https://github.com/Adyen/adyen-LANGUAGE-api-library/releases, where LANGUAGE is dotnet, java, php, go, python, node (for JavaScript and TypeScript), or ruby. # Split the screen to show two requests Split the screen on M400 payment terminals to show data while collecting input. You can vertically split the landscape display of the [M400](https://docs.adyen.com/point-of-sale/user-manuals/m400-user-manual) payment terminal. This allows you to [show data](https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen#show-data) on one side of the screen and [collect input](https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen#collect-input) from a shopper on the other side of the screen. For example, show a receipt on the left side, and take a survey on the right side. You can send two display requests at the same time, or one input request and one display request. ## Requirements Before you begin, take into account the following requirements and limitations. | Requirement | Description | | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Integration type** | A [Terminal API integration](https://docs.adyen.com/point-of-sale/get-started) with payment terminals. | | **Hardware** | This feature is only available on M400 payment terminals. | | **Limitations** | Supported requests are:- Display requests for an image or a virtual receipt without QR code. - Input requests to collect a phone number or to select a single answer from a multiple-choice question. | ## How it works 1. You specify in an XML file what data you want to show. You convert that XML file to Base64.\ You will pass the Base64-encoded string inside the `DisplayOutput.OutputContent.OutputXHTML` of the `DisplayRequest`. 2. You specify in an XML file what data you want to collect. You convert that XML file to Base64.\ You will pass the Base64-encoded string inside the `DisplayOutput.OutputContent.OutputXHTML` of the `InputRequest`. 3. You send both requests simultaneously. If you do not send both requests at the same time, the terminal screen shows the first request on one side. The other side shows a black background until you send the second request. 4. If input is collected, you receive the data inside `InputResult.Input` of the `InputResponse`. 5. You then pass the relevant data from `InputResult.Input` to your system for validation and further use. ## Show data We currently support showing an image or a virtual receipt without a QR code. ### Tab: Show an image 1. In the XML example below, specify: * ``: the screen split ratio. Can be **split\_50x50**, **split\_40x60**, and **split\_60x40**. * ``: the side of the split screen on which to show the request. Can be **left** or **right**. * ``: the type of request: **Image**. * ``: the image file converted to a Base64-encoded string. **Example XML file** ```xml Image ...your Base64-encoded image file... ``` 2. Encode the XML object to Base64. You will pass the resulting string in `OutputContent.OutputXHTML`. **Converted to a Base64-encoded string** ```raw PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNjcmVlbiBuYW1lPSJzcGxpdF80MHg2MCIgc2lkZT0ibGVmdCI+CiAgICA8T3V0cHV0Rm9ybWF0PgogICAgICAgIDxQcmVkZWZpbmVkQ29udGVudD4KICAgICAgICAgICAgPFJlZmVyZW5jZUlEPkltYWdlPC9SZWZlcmVuY2VJRD4KICAgICAgICA8L1ByZWRlZmluZWRDb250ZW50PgogICAgICAgIDxPdXRwdXRUZXh0PgogICAgICAgICAgICA8VGV4dD4uLi55b3VyIEJhc2U2NC1lbmNvZGVkIGltYWdlIGZpbGUuLi48L1RleHQ+CiAgICAgICAgPC9PdXRwdXRUZXh0PgogICAgPC9PdXRwdXRGb3JtYXQ+Cjwvc2NyZWVuPg== ``` 3. Make a [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api) display request, specifying: * The standard [`SaleToPOIRequest.MessageHeader` ](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api#request-message-header)object, with `MessageClass` set to **Device** and `MessageCategory` set to **Display**. | Parameter | Required | Description | | ----------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProtocolVersion` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **3.0** | | `MessageClass` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Device** | | `MessageCategory` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Display** | | `MessageType` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Request** | | `ServiceID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (`POIID`) being used. | | `SaleID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for the POS system component to send this request from. | | `POIID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The unique ID of the terminal to send this request to. Format: *\[device model]-\[serial number]*. | - The [DisplayRequest.DisplayOutput](https://docs.adyen.com/api-explorer/terminal-api/latest/post/display#request-DisplayOutput) array containing a single array item with: | Parameter | Description | | ---------------------------- | -------------------------------------- | | `Device` | **CustomerDisplay** | | `InfoQualify` | **Display** | | `OutputContent.OutputFormat` | **XHTML** | | `OutputContent.OutputXHTML` | The Base64-encoded string from Step 2. | **Show an image on the left** ```json { "SaleToPOIRequest": { "MessageHeader": { "ProtocolVersion": "3.0", "MessageClass": "Device", "MessageCategory": "Display", "MessageType": "Request", "ServiceID": "1116172359", "SaleID": "POSSystemID12345", "POIID": "M400-284251175" }, "DisplayRequest": { "DisplayOutput": [ { "Device": "CustomerDisplay", "InfoQualify": "Display", "OutputContent": { "OutputFormat": "XHTML", "OutputXHTML": "PD94bWwgdmVyc2lvbj0iMS4wIiBlb..." } } ] } } } ``` 4. Check the result.\ If the request is successful, the payment terminal shows the data on the specified side of the screen and you receive a display response with an [OutputResult](https://docs.adyen.com/api-explorer/terminal-api/latest/post/display#responses-200-OutputResult) that includes `Response.Result`: **Success**.\ The other side of the screen shows a black background until you send the other request. **Display response** ```json { "SaleToPOIResponse": { "DisplayResponse": { "OutputResult": [ { "Device": "CustomerDisplay", "InfoQualify": "Display", "Response": { "Result": "Success" } } ] }, "MessageHeader": {...} } } ``` * If an error occurs while decoding the image, the image won't be shown and you receive a display response with `OutputResult.Response.Result`: **Failure**. See [XML validation](https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen#validation) for information about how errors in the XML content are reported. ### Tab: Show a virtual receipt 1. In the XML example below, specify: * ``: the screen split ratio. Can be **split\_50x50**, **split\_40x60**, and **split\_60x40**. * ``: the side of the split screen on which to show the request. Can be **left** or **right**. * ``: the receipt information. This can contain: * ``: the header line of the virtual receipt. * `<lines>`: contains line items that represent the goods that the shopper is purchasing. Each line item can have a count, description, and amount. * `<subtotal>`: amount due before discounts and taxes. * `<tax>`: total discounts, amount and type of taxes, total tax amount. * `<total>`: final amount due. **Example XML file** ```xml <?xml version="1.0" encoding="UTF-8"?> <screen name="split_50x50" side="left"> <receipt> <title>Your Items ** SALES ** 1 Running shoes $ 79.99 2 Green T-shirt @ 9.89 $ 19.78 ** RETURNS ** 1 Grey t-shirt @ 12.99 $ -12.99 ** DISCOUNTS ** Loyalty discount $ -4.48 ____________________ Subtotal $ 86.78 Total discount: $ -4.48 State tax: $ 5.97 County tax: $ 1.85 Total tax: $ 7.82 Total amount: $ 90.12 ``` 2. Encode the XML object to Base64. You will pass the resulting string in `OutputContent.OutputXHTML`. **Converted to a Base64-encoded string** ```raw PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNjcmVlbiBuYW1lPSJzcGxpdF81MHg1MCIgc2lkZT0ibGVmdCI+CiAgICA8cmVjZWlwdD4KICAgICAgICA8dGl0bGU+WW91ciBJdGVtczwvdGl0bGU+CiAgICAgICAgPGxpbmVzPgogICAgICAgICAgICA8IS0tIHRoZSBsaW5lcyBlbGVtZW50IGNhbiBoYXZlIDAgb3IgbW9yZSBsaW5laXRlbXMgLS0+CiAgICAgICAgICAgIDxsaW5laXRlbT4KICAgICAgICAgICAgICAgIDxkZXNjcmlwdGlvbj4qKiBTQUxFUyAqKjwvZGVzY3JpcHRpb24+CiAgICAgICAgICAgIDwvbGluZWl0ZW0+CiAgICAgICAgICAgIDxsaW5laXRlbT4KICAgICAgICAgICAgICAgIDwhLS0gYWxsIGVsZW1lbnRzIChjb3VudCwgZGVzY3JpcHRpb24sIGFuZCBhbW91bnQpIGFyZSBvcHRpb25hbCAtLT4KICAgICAgICAgICAgICAgIDxjb3VudD4xPC9jb3VudD4KICAgICAgICAgICAgICAgIDxkZXNjcmlwdGlvbj5SdW5uaW5nIHNob2VzPC9kZXNjcmlwdGlvbj4KICAgICAgICAgICAgICAgIDxhbW91bnQ+CiAgICAgICAgICAgICAgICAgICAgPCEtLSBhbiBhbW91bnQgbXVzdCBoYXZlIGEgY3VycmVuY3kgc3ltYm9sIG9yIGNvZGUsIGFuZCBhIHZhbHVlIC0tPgogICAgICAgICAgICAgICAgICAgIDxjdXJyZW5jeT4kPC9jdXJyZW5jeT4KICAgICAgICAgICAgICAgICAgICA8dmFsdWU+NzkuOTk8L3ZhbHVlPgogICAgICAgICAgICAgICAgPC9hbW91bnQ+CiAgICAgICAgICAgIDwvbGluZWl0ZW0+CiAgICAgICAgICAgIDxsaW5laXRlbT4KICAgICAgICAgICAgICAgIDxjb3VudD4yPC9jb3VudD4KICAgICAgICAgICAgICAgIDxkZXNjcmlwdGlvbj5HcmVlbiBULXNoaXJ0IEAgOS44OTwvZGVzY3JpcHRpb24+CiAgICAgICAgICAgICAgICA8YW1vdW50PgogICAgICAgICAgICAgICAgICAgIDxjdXJyZW5jeT4kPC9jdXJyZW5jeT4KICAgICAgICAgICAgICAgICAgICA8dmFsdWU+MTkuNzg8L3ZhbHVlPgogICAgICAgICAgICAgICAgPC9hbW91bnQ+CiAgICAgICAgICAgIDwvbGluZWl0ZW0+CiAgICAgICAgICAgIDxsaW5laXRlbT4KICAgICAgICAgICAgICAgIDxkZXNjcmlwdGlvbj4qKiBSRVRVUk5TICoqPC9kZXNjcmlwdGlvbj4KICAgICAgICAgICAgPC9saW5laXRlbT4KICAgICAgICAgICAgPGxpbmVpdGVtPgogICAgICAgICAgICAgICAgPGNvdW50PjE8L2NvdW50PgogICAgICAgICAgICAgICAgPGRlc2NyaXB0aW9uPkdyZXkgdC1zaGlydCBAIDEyLjk5PC9kZXNjcmlwdGlvbj4KICAgICAgICAgICAgICAgIDxhbW91bnQ+CiAgICAgICAgICAgICAgICAgICAgPGN1cnJlbmN5PiQ8L2N1cnJlbmN5PgogICAgICAgICAgICAgICAgICAgIDx2YWx1ZT4tMTIuOTk8L3ZhbHVlPgogICAgICAgICAgICAgICAgPC9hbW91bnQ+CiAgICAgICAgICAgIDwvbGluZWl0ZW0+CiAgICAgICAgICAgIDxsaW5laXRlbT4KICAgICAgICAgICAgICAgIDxkZXNjcmlwdGlvbiAvPgogICAgICAgICAgICAgICAgPCEtLSBhIGxpbmVpdGVtIGNvbnRhaW5pbmcgb25seSBhbiBlbXB0eSBkZXNjcmlwdGlvbiByZXR1cm5zIGEgYmxhbmsgbGluZSAtLT4KICAgICAgICAgICAgPC9saW5laXRlbT4KICAgICAgICAgICAgPGxpbmVpdGVtPgogICAgICAgICAgICAgICAgPGRlc2NyaXB0aW9uPioqIERJU0NPVU5UUyAqKjwvZGVzY3JpcHRpb24+CiAgICAgICAgICAgIDwvbGluZWl0ZW0+CiAgICAgICAgICAgIDxsaW5laXRlbT4KICAgICAgICAgICAgICAgIDxkZXNjcmlwdGlvbj5Mb3lhbHR5IGRpc2NvdW50PC9kZXNjcmlwdGlvbj4KICAgICAgICAgICAgICAgIDxhbW91bnQ+CiAgICAgICAgICAgICAgICAgICAgPGN1cnJlbmN5PiQ8L2N1cnJlbmN5PgogICAgICAgICAgICAgICAgICAgIDx2YWx1ZT4tNC40ODwvdmFsdWU+CiAgICAgICAgICAgICAgICA8L2Ftb3VudD4KICAgICAgICAgICAgPC9saW5laXRlbT4KICAgICAgICAgICAgPGxpbmVpdGVtPgogICAgICAgICAgICAgICAgPGRlc2NyaXB0aW9uPl9fX19fX19fX19fX19fX19fX19fPC9kZXNjcmlwdGlvbj4KICAgICAgICAgICAgPC9saW5laXRlbT4KICAgICAgICAgICAgPCEtLSBhbiBlbXB0eSBsaW5laXRlbSByZXR1cm5zIGEgYmxhbmsgbGluZSAodGFraW5nIHVwIHZlcnRpY2FsIHNwYWNlKSAtLT4KICAgICAgICAgICAgPGxpbmVpdGVtIC8+CiAgICAgICAgPC9saW5lcz4KICAgICAgICA8IS0tIGEgcmVjZWlwdCBjYW4gaGF2ZSAwIG9yIDEgc3VidG90YWwgZWxlbWVudCAtLT4KICAgICAgICA8c3VidG90YWw+CiAgICAgICAgICAgIDwhLS0gZGVzY3JpcHRpb24gYW5kIGFtb3VudCBhcmUgYm90aCBvcHRpb25hbCAtLT4KICAgICAgICAgICAgPGRlc2NyaXB0aW9uPlN1YnRvdGFsPC9kZXNjcmlwdGlvbj4KICAgICAgICAgICAgPGFtb3VudD4KICAgICAgICAgICAgICAgIDxjdXJyZW5jeT4kPC9jdXJyZW5jeT4KICAgICAgICAgICAgICAgIDx2YWx1ZT44Ni43ODwvdmFsdWU+CiAgICAgICAgICAgIDwvYW1vdW50PgogICAgICAgIDwvc3VidG90YWw+CiAgICAgICAgPCEtLSBhIHJlY2VpcHQgY2FuIGhhdmUgMCBvciAxIHRheCBlbGVtZW50IC0tPgogICAgICAgIDx0YXg+CiAgICAgICAgICAgIDwhLS0gdGF4IGVsZW1lbnQgY2FuIGhhdmUgMCBvciAxIHRvdGFsZGlzY291bnQgZWxlbWVudC0tPgogICAgICAgICAgICA8dG90YWxkaXNjb3VudD4KICAgICAgICAgICAgICAgIDxkZXNjcmlwdGlvbj5Ub3RhbCBkaXNjb3VudDo8L2Rlc2NyaXB0aW9uPgogICAgICAgICAgICAgICAgPGFtb3VudD4KICAgICAgICAgICAgICAgICAgICA8Y3VycmVuY3k+JDwvY3VycmVuY3k+CiAgICAgICAgICAgICAgICAgICAgPHZhbHVlPi00LjQ4PC92YWx1ZT4KICAgICAgICAgICAgICAgIDwvYW1vdW50PgogICAgICAgICAgICA8L3RvdGFsZGlzY291bnQ+CiAgICAgICAgICAgIDwhLS0gdGF4IGVsZW1lbnQgY2FuIGhhdmUgMCBvciBtb3JlIHRheGl0ZW0gZWxlbWVudHMgLS0+CiAgICAgICAgICAgIDx0YXhpdGVtPgogICAgICAgICAgICAgICAgPCEtLSBkZXNjcmlwdGlvbiBhbmQgYW1vdW50IGFyZSBib3RoIG9wdGlvbmFsIC0tPgogICAgICAgICAgICAgICAgPGRlc2NyaXB0aW9uPlN0YXRlIHRheDo8L2Rlc2NyaXB0aW9uPgogICAgICAgICAgICAgICAgPGFtb3VudD4KICAgICAgICAgICAgICAgICAgICA8Y3VycmVuY3k+JDwvY3VycmVuY3k+CiAgICAgICAgICAgICAgICAgICAgPHZhbHVlPjUuOTc8L3ZhbHVlPgogICAgICAgICAgICAgICAgPC9hbW91bnQ+CiAgICAgICAgICAgIDwvdGF4aXRlbT4KICAgICAgICAgICAgPHRheGl0ZW0+CiAgICAgICAgICAgICAgICA8ZGVzY3JpcHRpb24+Q291bnR5IHRheDo8L2Rlc2NyaXB0aW9uPgogICAgICAgICAgICAgICAgPGFtb3VudD4KICAgICAgICAgICAgICAgICAgICA8Y3VycmVuY3k+JDwvY3VycmVuY3k+CiAgICAgICAgICAgICAgICAgICAgPHZhbHVlPjEuODU8L3ZhbHVlPgogICAgICAgICAgICAgICAgPC9hbW91bnQ+CiAgICAgICAgICAgIDwvdGF4aXRlbT4KICAgICAgICAgICAgPCEtLSB0YXggZWxlbWVudCBjYW4gaGF2ZSAwIG9yIDEgdGF4dG90YWwgZWxlbWVudCAtLT4KICAgICAgICAgICAgPHRheHRvdGFsPgogICAgICAgICAgICAgICAgPCEtLSBkZXNjcmlwdGlvbiBhbmQgYW1vdW50IGFyZSBib3RoIG9wdGlvbmFsIC0tPgogICAgICAgICAgICAgICAgPGRlc2NyaXB0aW9uPlRvdGFsIHRheDo8L2Rlc2NyaXB0aW9uPgogICAgICAgICAgICAgICAgPGFtb3VudD4KICAgICAgICAgICAgICAgICAgICA8Y3VycmVuY3k+JDwvY3VycmVuY3k+CiAgICAgICAgICAgICAgICAgICAgPHZhbHVlPjcuODI8L3ZhbHVlPgogICAgICAgICAgICAgICAgPC9hbW91bnQ+CiAgICAgICAgICAgIDwvdGF4dG90YWw+CiAgICAgICAgPC90YXg+CiAgICAgICAgPCEtLSBhIHJlY2VpcHQgY2FuIGhhdmUgMCBvciAxIHRvdGFsIGVsZW1lbnQgLS0+CiAgICAgICAgPHRvdGFsPgogICAgICAgICAgICA8IS0tIGRlc2NyaXB0aW9uIGFuZCBhbW91bnQgYXJlIGJvdGggb3B0aW9uYWwgLS0+CiAgICAgICAgICAgIDxkZXNjcmlwdGlvbj5Ub3RhbCBhbW91bnQ6PC9kZXNjcmlwdGlvbj4KICAgICAgICAgICAgPGFtb3VudD4KICAgICAgICAgICAgICAgIDxjdXJyZW5jeT4kPC9jdXJyZW5jeT4KICAgICAgICAgICAgICAgIDx2YWx1ZT45MC4xMjwvdmFsdWU+CiAgICAgICAgICAgIDwvYW1vdW50PgogICAgICAgIDwvdG90YWw+CiAgICA8L3JlY2VpcHQ+Cjwvc2NyZWVuPg== ``` 3. Make a [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api) display request, specifying: * The standard [`SaleToPOIRequest.MessageHeader` ](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api#request-message-header)object, with `MessageClass` set to **Device** and `MessageCategory` set to **Display**. | Parameter | Required | Description | | ----------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProtocolVersion` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **3.0** | | `MessageClass` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Device** | | `MessageCategory` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Display** | | `MessageType` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Request** | | `ServiceID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (`POIID`) being used. | | `SaleID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for the POS system component to send this request from. | | `POIID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The unique ID of the terminal to send this request to. Format: *\[device model]-\[serial number]*. | - The [DisplayRequest.DisplayOutput](https://docs.adyen.com/api-explorer/terminal-api/latest/post/display#request-DisplayOutput) array containing a single array item with: | Parameter | Description | | ---------------------------- | -------------------------------------- | | `Device` | **CustomerDisplay** | | `InfoQualify` | **Display** | | `OutputContent.OutputFormat` | **XHTML** | | `OutputContent.OutputXHTML` | The Base64-encoded string from Step 2. | **Show a virtual receipt on the left** ```json { "SaleToPOIRequest": { "MessageHeader": { "ProtocolVersion": "3.0", "MessageClass": "Device", "MessageCategory": "Display", "MessageType": "Request", "ServiceID": "1116172359", "SaleID": "POSSystemID12345", "POIID": "M400-284251175" }, "DisplayRequest": { "DisplayOutput": [ { "Device": "CustomerDisplay", "InfoQualify": "Display", "OutputContent": { "OutputFormat": "XHTML", "OutputXHTML": "PD94bWwgdmVyc2lvbj0iMS4wIiBlb..." } } ] } } } ``` 4. Check the result. * If the request is successful, you receive a display response with `OutputResult.Response.Result`: **Success**. **Display response** ```json { "SaleToPOIResponse":{ "DisplayResponse":{ "OutputResult":[ { "InfoQualify":"Display", "Device":"CustomerDisplay", "Response":{ "Result":"Success" } } ] }, "MessageHeader":{...} } } ``` The payment terminal shows the virtual receipt on the specified side of the screen. The receipt auto-scrolls to the bottom and the header and footer are 'sticky'.\ The other side of the screen shows a black background, until you send the other request. * If the request is not successful, you receive a display response with `OutputResult.Response.Result`: **Failure** and more information about why the request failed. See [XML validation](https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen#validation) for information about how errors in the XML content are reported. After the input is collected on the other part of the screen, the shown data resizes to the full width of the screen and continues to show.\ To stop it from showing, you need to send a payment request, or a request to [show the standby screen](https://docs.adyen.com/point-of-sale/shopper-engagement/display-data/idle-display). ## Collect input We currently support presenting shoppers with a form to collect their phone number or a multiple choice form that allows a single answer. When using split screen input requests, the users cannot select the **Confirm** **![](/images/f/4/a/f/c/f4afcbf40e52f510b0906f4bf01e514c7ae60e53-confirm2x.png)** or **Cancel** **![](/images/c/d/f/7/f/cdf7fc543712c6f36b25ed0f7c404e042e56cea0-cancel2x.png)** keys on the terminal keypad. Instead, you need to implement logic to confirm or decline the request using the buttons on the input screen.\ The numerical keypad and the **Clear** **![](/images/2/3/9/d/3/239d3899016cdf98f8dc00731f7d33fea68163ff-correct2x.png)** key can still be used. ### Tab: Collect phone number 1. In the XML example below, specify: * ``: the screen split ratio. Can be **split\_50x50**, **split\_40x60**, and **split\_60x40**. * ``: the side of the split screen on which to show the request. Can be **left** or **right**. * ``: the type of request: **GetPhoneNumber**. * ``: shows the specified text on screen, for example **Enter your phone number:**. **Example XML file** ```xml GetPhoneNumber Enter your phone number: ``` 2. Encode the XML object to Base64. You will pass the resulting string in `OutputContent.OutputXHTML`. **Converted to a Base64-encoded string** ```raw PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNjcmVlbiBuYW1lPSJzcGxpdF80MHg2MCIgc2lkZT0icmlnaHQiPgogICAgPE91dHB1dEZvcm1hdD4KICAgICAgICA8UHJlZGVmaW5lZENvbnRlbnQ+CiAgICAgICAgICAgIDxSZWZlcmVuY2VJRD5HZXRQaG9uZU51bWJlcjwvUmVmZXJlbmNlSUQ+CiAgICAgICAgPC9QcmVkZWZpbmVkQ29udGVudD4KICAgICAgICA8T3V0cHV0VGV4dD4KICAgICAgICAgICAgPFRleHQ+RW50ZXIgeW91ciBwaG9uZSBudW1iZXI6PC9UZXh0PgogICAgICAgIDwvT3V0cHV0VGV4dD4KICAgIDwvT3V0cHV0Rm9ybWF0Pgo8L3NjcmVlbj4= ``` 3. Make a [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api) display request, specifying: * The standard [`SaleToPOIRequest.MessageHeader` ](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api#request-message-header)object, with `MessageClass` set to **Device** and `MessageCategory` set to **Display**. | Parameter | Required | Description | | ----------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProtocolVersion` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **3.0** | | `MessageClass` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Device** | | `MessageCategory` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Display** | | `MessageType` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Request** | | `ServiceID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (`POIID`) being used. | | `SaleID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for the POS system component to send this request from. | | `POIID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The unique ID of the terminal to send this request to. Format: *\[device model]-\[serial number]*. | - The [DisplayRequest.DisplayOutput](https://docs.adyen.com/api-explorer/terminal-api/latest/post/display#request-DisplayOutput) array with one array item containing: | Parameter | Description | | ---------------------------- | -------------------------------------- | | `Device` | **CustomerDisplay** | | `InfoQualify` | **Display** | | `OutputContent.OutputFormat` | **XHTML** | | `OutputContent.OutputXHTML` | The Base64-encoded string from Step 2. | - `InputRequest.InputData`: This object handles the user input. | Parameter | Description | | ------------------------------ | --------------------------------------------------------------------------------------------- | | `Device` | **CustomerInput** | | `InfoQualify` | **Input** | | `InputCommand` | **DigitString** | | `MaxInputTime` | (Integer) Time-out in seconds. This is the time that the user gets to finish their input. | | `InputData.DefaultInputString` | Placeholder text for the input box, to let the user know what input format you are expecting. | **Collect phone number on the right** ```json { "SaleToPOIRequest": { "MessageHeader": { "ProtocolVersion": "3.0", "MessageClass": "Device", "MessageCategory": "Input", "MessageType": "Request", "ServiceID": "1116172359", "SaleID": "POSSystemID12345", "POIID": "M400-284251175" }, "InputRequest": { "DisplayOutput": { "Device": "CustomerDisplay", "InfoQualify": "Display", "OutputContent": { "OutputFormat": "XHTML", "OutputXHTML": "PD94bWwgdmVyc2lvbj0iMS4wI..." } }, "InputData": { "Device": "CustomerInput", "InfoQualify": "Input", "InputCommand": "DigitString", "MaxInputTime": 40, "DefaultInputString": "0612345678" } } } } ``` The payment terminal shows the input request on the specified side of the screen. The other side of the screen shows a black background, until you send the other request. 4. Wait for the user to supply the requested input. The provided input is not validated against a format. If the input is received from the terminal, the `InputResult.Input` contains the entered numerals (phone number) inside `DigitInput`. **Example response when the user entered a phone number** ```json { "SaleToPOIResponse": { "InputResponse": { "InputResult": { "Device": "CustomerInput", "InfoQualify": "Input", "Input": { "DigitInput": "+31 0690758074", "InputCommand": "DigitString" }, "Response": { "AdditionalResponse": "responseData=%7b%20%20%7d", "Result": "Success" } }, "OutputResult": { "Device": "CustomerDisplay", "InfoQualify": "Display", "Response": { "Result": "Success" } } }, "MessageHeader": {...} } } ``` * If the input request times out, the `InputResult.Response` has `AdditionalResponse`: **message=Screen%20timeout**, `Result`: **Failure**, and `ErrorCondition`: **Cancel**. * If you make a payment request while the input request is waiting for input on the terminal, the payment request overrides the input request. The `InputResult.Response` has `AdditionalResponse`: **message=A%20higher%20priority%20request%20has%20been%20received**, `Result`: **Failure**, and `ErrorCondition`: **Busy**. * If the user declines to respond (by selecting the **Skip** button), the `InputResult.Input.DigitInput` field is empty. The `InputResult.Response` has `Result`: **Failure** and `ErrorCondition`: **Cancel**. 5. Pass the phone number from the `DigitInput` field to your system for validation and further use. ### Tab: Multiple choice - single answer The multiple choice screen shows a header, optionally a sub-header, and 5 buttons to choose from. The user can select one option and we only pass which option is selected. You then need to implement in your system what that option does. 1. In the XML example below, specify: * ``: the screen split ratio. Can be **split\_50x50**, **split\_40x60**, and **split\_60x40**. * ``: the side of the split screen on which to show the request. Can be **left** or **right**. * ``: the type of request: **TileButtons**. Shows 5 options to choose from. * ``: shows the specified text as the header of the multiple choice question, for example **Select an option:**. **Example XML file** ```xml TileButtons Select an option: ``` 2. Encode the XML object to Base64. You will pass the resulting string in `OutputContent.OutputXHTML`. **Converted to a Base64-encoded string** ```raw PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNjcmVlbiBuYW1lPSJzcGxpdF81MHg1MCIgc2lkZT0icmlnaHQiPgogICAgPE91dHB1dEZvcm1hdD4KICAgICAgICA8UHJlZGVmaW5lZENvbnRlbnQ+CiAgICAgICAgICAgIDxSZWZlcmVuY2VJRD5UaWxlQnV0dG9uczwvUmVmZXJlbmNlSUQ+CiAgICAgICAgPC9QcmVkZWZpbmVkQ29udGVudD4KICAgICAgICA8T3V0cHV0VGV4dD4KICAgICAgICAgICAgPFRleHQ+U2VsZWN0IGFuIG9wdGlvbjo8L1RleHQ+CiAgICAgICAgPC9PdXRwdXRUZXh0PgogICAgPC9PdXRwdXRGb3JtYXQ+Cjwvc2NyZWVuPg== ``` 3. Make a [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api) display request, specifying: * The standard [`SaleToPOIRequest.MessageHeader` ](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api#request-message-header)object, with `MessageClass` set to **Device** and `MessageCategory` set to **Display**. | Parameter | Required | Description | | ----------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ProtocolVersion` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **3.0** | | `MessageClass` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Device** | | `MessageCategory` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Display** | | `MessageType` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | **Request** | | `ServiceID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (`POIID`) being used. | | `SaleID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Your unique ID for the POS system component to send this request from. | | `POIID` | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The unique ID of the terminal to send this request to. Format: *\[device model]-\[serial number]*. | - [DisplayRequest.DisplayOutput](https://docs.adyen.com/api-explorer/terminal-api/latest/post/display#request-DisplayOutput): an array with one array item containing: | Parameter | Description | | ---------------------------- | -------------------------------------- | | `Device` | **CustomerDisplay** | | `InfoQualify` | **Display** | | `OutputContent.OutputFormat` | **XHTML** | | `OutputContent.OutputXHTML` | The Base64-encoded string from Step 2. | - `InputRequest.MenuEntry`: an array of up to 5 items representing the options to choose from. The terminal shows these items as a scrollable list of buttons that the user can tap to select. Each item in the array has: | Parameter | Description | | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `OutputFormat` | **Text** | | `OutputText` | An array of one or two `Text` fields to specify the answer or menu button. The first text field will show in bold. The second text field is optional; you can omit it from the request. For example, you could write a short-form answer in the first field, and the long-form answer in the second field. | - `InputRequest.InputData`: This object handles the user input. | Parameter | Description | | -------------- | ----------------------------------------------------------------------------------------- | | `Device` | **CustomerInput** | | `InfoQualify` | **Input** | | `InputCommand` | **GetMenuEntry** | | `MaxInputTime` | (Integer) Time-out in seconds. This is the time that the user gets to finish their input. | **Multiple choice - single answer on the right** ```json { "SaleToPOIRequest":{ "MessageHeader":{...}, "InputRequest":{ "DisplayOutput":{ "Device":"CustomerDisplay", "InfoQualify":"Display", "OutputContent":{ "OutputFormat":"XHTML", "OutputXHTML":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZ..." }, "MenuEntry":[ { "OutputFormat":"Text", "OutputText":[ { "Text":"Option 1" } ] }, { "OutputFormat":"Text", "OutputText":[ { "Text":"Option 2" } ] }, { "OutputFormat":"Text", "OutputText":[ { "Text":"Option 3" } ] }, { "OutputFormat":"Text", "OutputText":[ { "Text":"Option 4" } ] }, { "OutputFormat":"Text", "OutputText":[ { "Text":"Option 5" } ] } ] }, "InputData":{ "Device":"CustomerInput", "InfoQualify":"Input", "InputCommand":"DigitString", "MaxInputTime":40, "DefaultInputString":"0612345678" } } } } ``` The payment terminal shows the multiple choice question on the specified side of the screen. If the other request is not sent at the same time, the other side of the screen shows a black background until the request is sent. 4. Wait for the user to supply the requested input. The provided input is not validated against a format. If input is provided to the terminal, the `MenuEntryNumber` inside `InputResult.Input` contains an array that indicates the option that the user selected. For example, if the third option is selected, the third item in the array is `1` and all other array items are `0`. **Example response when the shopper selected an option** ```json { "SaleToPOIResponse": { "InputResponse": { "InputResult": { "Device": "CustomerInput", "InfoQualify": "Input", "Response": { "Result": "Success" }, "Input": { "MenuEntryNumber": [ 0, 0, 1, 0, 0 ], "InputCommand": "GetMenuEntry" } }, "OutputResult": { "Device": "CustomerDisplay", "InfoQualify": "Display", "Response": { "Result": "Success" } } }, "MessageHeader": {...} } } ``` * If the input request times out, the `InputResult.Response` has `AdditionalResponse`: **message=Screen%20timeout**, `Result`: **Failure**, and `ErrorCondition`: **Cancel**. * If you make a payment request while the input request is waiting for input on the terminal, the payment request overrides the input request. The `InputResult.Response` has `AdditionalResponse`: **message=A%20higher%20priority%20request%20has%20been%20received**, `Result`: **Failure**, and `ErrorCondition`: **Busy**. 5. Pass the relevant data from `InputResult.Input` to your system for validation and further use. See [XML validation](https://docs.adyen.com/point-of-sale/shopper-engagement/split-screen#validation) for information about how errors in the XML content are reported. ## XML validation When we receive your display and input requests, we check if we can parse the XML content. We can also check whether the XML content matches the XML Schema Definition (XSD). We only do this XSD check if it is enabled for your account. * **Parsing**\ We always check whether we can parse the XML content of your request. For example, if the XML contains a syntax error like a missing caret `>`, we cannot parse the XML. We'll send a failure response with *XHTML data could not be parsed*. **XHTML data could not be parsed** ```json { ... "Response": { "AdditionalResponse": "message=XHTML%20data%20could%20not%20be%20parsed.", "ErrorCondition": "MessageFormat", "Result": "Failure" } } ``` * **XSD**\ If we can parse the XML content and XSD checking is enabled, we validate the XML against the XSD. To use this validation, ask our [Support Team](https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other) to enable the virtual receipt XSD check. For example, if you add an element that is not in the XSD or if you omit a required element, the XML doesn't match the XSD. We'll send a failure response with *XSD validation failed*. **XSD validation failed** ```json { ... "Response": { "AdditionalResponse": "message=XSD%20validation%20failed.", "ErrorCondition": "MessageFormat", "Result": "Failure" } } ``` The details of any XSD errors are in the terminal log. ## See also * [Set the display to standby](https://docs.adyen.com/point-of-sale/shopper-engagement/display-data/idle-display) * [Show a virtual receipt](https://docs.adyen.com/point-of-sale/shopper-engagement/display-data/display-receipt) * [Show an image on the display](https://docs.adyen.com/point-of-sale/shopper-engagement/display-data/display-image) * [Ask for a single answer from a list](https://docs.adyen.com/point-of-sale/shopper-engagement/shopper-input/menu) * [Ask for phone number](https://docs.adyen.com/point-of-sale/shopper-engagement/shopper-input/phone-number)