Skip to main content
Here we describe how you can use an input request to ask the customer to enter an amount. For example, the amount they want to pay when splitting the bill. The terminal shows the currency and a placeholder amount with two decimals.

Requirements

Before you begin, take into account the following requirement.

How it works

When you use a GetAmount InputRequest, the terminal prompts the shopper or your staff to enter an amount. The terminal continues to show your input request until one of these events occurs:
  • The user has provided input.
  • The maximum input time expires. You can set this time in the request.
  • On the terminal, Cancel is selected.
  • The terminal receives a request to cancel collecting input or any other request from the POS app.

Examples

The next illustration shows the amount input screen on a landscape display. The following illustrations show the amount input screen on a small portrait display and a portrait display without a keypad.

Entering an amount

As the customer enters their input, the amount is populated from right to left. For example, when the customer selects 3, 6, 5, and 9 to enter an amount of EUR 36.59, the screen changes from a placeholder amount of EUR 0.00 to EUR 0.03, to EUR 0.36 and so on.

Currency

By default, the currency is set to the first one specified for your store in the Customer Area. To check this: your settings in your Customer Area:
  1. In your Customer Area, go to In-person payments > Stores.
  2. Select your store, and go to Payment features.
If you use a merchant account to represent a physical store, it is the first currency defined for the merchant account. To check this:
  1. In your Customer Area, select your merchant account.
  2. Go to In-person payments > Terminal settings > Payment features.

Make an Amount input request

To use the payment terminal to ask for an amount input:
  1. Make a Terminal API input request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Device and MessageCategory set to Input.
    The following example asks the shopper to enter the amount they want to pay.

    JSON

    Java

  2. Wait for the user to supply the requested input. If input is received from the terminal, the input response includes an InputResult object with:
    • Input.DigitInput: The amount that the user entered.
    Example response when the shopper entered an amount
    • 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 declined to respond (selected the Cancel key ), the InputResult.Input.DigitInput field is empty. The InputResult.Response has Result: Failure and ErrorCondition: Cancel.
  3. Pass the DigitInput value to your system for validation and further use.

See also