The mPress SDK provides the following method to prompt the user to enter a numeric value.
Input Variables
Name | Data Type | Mandatory | Default | Description |
Prompts | array | Yes | The prompts that will be displayed left justified on the line identified by the order in the array. ‘Prompt 1’ defines the top line, ‘Prompt 2’ the second, etc | |
Texts | array | No | The text that will be displayed left justified on the line identified by the order in the array as a reminder prompt to the cardholder. ‘Text 1’ defines the top line, ‘Text 2’ the second, etc | |
MaskInput | boolean | Determines whether the values entered are masked or not. |
Output Variables
Name | Data Type | Mandatory | Enterprise setTag Equivalent | Description |
Value | numeric | Yes | N/A | Populated with the value entered by the user. |
The getNumericData method will throw an exception of type mPressException (“Not Implemented”) if getNumericData has not been implemented.