Requirements
Before you begin, take into account the following requirement.How it works
When you use a GetAmountInputRequest, 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:- In your Customer Area, go to In-person payments > Stores.
- Select your store, and go to Payment features.
- In your Customer Area, select your merchant account.
- 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:-
Make a Terminal API input request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Device andMessageCategoryset to Input.
JSON
Java
-
The standard
-
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.
-
If the input request times out, the
InputResult.ResponsehasAdditionalResponse: message=Screen%20timeout,Result: Failure, andErrorCondition: 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.ResponsehasAdditionalResponse: message=A%20higher%20priority%20request%20has%20been%20received,Result: Failure, andErrorCondition: Busy. -
If the user declined to respond (selected the Cancel key
), the InputResult.Input.DigitInputfield is empty. TheInputResult.ResponsehasResult: Failure andErrorCondition: Cancel.
-
Pass the
DigitInputvalue to your system for validation and further use.
