TheDocumentation Index
Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
Use this file to discover all available pages before exploring further.
displaySelect method allows the client application to present a menu or a list of choices to the customer. This serves as a key component for interactive workflows where the user must make a decision before the transaction can proceed.
Use this method to:
- Offer product selections between different fuel grades, such as Regular, Mid-grade, or Premium.
- Enable language selection to allow the customer to choose their preferred language for the session.
- Present service options like adding a car wash or selecting a specific pump number.
- Provide loyalty choices, such as asking the user to “Use Points” or “Save for Later.”


Requests
All requests must include atitle for the menu and an array of options. Each option should have a label that the customer will see.
The following example shows a typical request:
Parameter Definitions
The table below describes the parameters available for this request:| Name | Type | Required | Description |
|---|---|---|---|
| command | string | Yes | Set to "displaySelect". |
| requestId | string | Yes | A unique identifier for tracking the response. |
| title | string | Yes | The header text displayed above the options list. |
| options | array | Yes | A list of strings representing the choices available to the user. |
| timeout | integer | No | Duration (in seconds) before the menu auto-closes if no selection is made. |
Responses
The terminal returns the index or the value of the option selected by the customer. The following example shows a typical response:Response Parameters
Thedata object contains the result of the customer’s interaction:
| Name | Type | Description |
|---|---|---|
| selectedIndex | integer | The zero-based index of the option chosen from the original list. |
| selectedValue | string | The text label of the option that was selected. |
| state | string | Returns COMPLETED upon selection or CANCELLED if the user exited the menu. |