Skip to main content
The displayConfirm method presents the customer with a binary choice on the terminal screen. This serves as a streamlined way to handle user consent or simple decision points within the transaction flow. Use this method to:
  • Ask for agreement on terms, such as “Do you agree to a $100 pre-authorization hold?”
  • Confirm physical actions, like “Is the nozzle back in the holster?”
  • Prompt the user for receipt preferences, such as “Would you like a printed receipt?”
  • Offer quick prompts for additional services, like “Add a car wash for $5.00?”
Examples of the two-choice option prompts on a Nayax device:

Requests

The request requires a title and the text for the specific prompt. You can customize the labels of the two buttons to fit your specific use case. The following example shows a typical request:

Parameter Definitions

The table below describes the parameters available for this request: This is a text only request example:
This is an image only request example:
This is a text and image request example:

Responses

The terminal returns the user’s choice immediately after a button is pressed. The following example shows a typical response:

Response Parameters

The data object contains the outcome of the confirmation prompt: