Restrictions
#
Minimum limit of 4 digitsDue to the requirement of the Pinpad Library collection command, when entering any data via keyboard, it is mandatory to enter at least four (4) characters, otherwise, the command will be rejected by returning “Invalid parameter passed to function” .
If the data has less than four (4) digits, it will be necessary to supplement it with additional digits until the Minimum Limit is reached (see “Example 3 - Collecting the Month of Birth”).
#
Maximum limit of 12 digitsDue to the requirement of the Pinpad Library collection command, when entering any data via keyboard, it is mandatory to type a maximum of 12 characters, otherwise the command will be rejected via return “Invalid parameter passed to function” .
#
13 to 24 digit data requires 2 collect commandsIf the data has 13 to 24 digits, it must be collected in two parts, so that the concatenation of these parts contains the total size of the data.
In other words, 2 collection commands will be needed.
Note: It is not allowed to collect a field with more than 24 digits. If this occurs, CliSiTef will return Error -20 (invalid parameter)
The division into two parts can be done by Automation itself (see “Example 1 - Automation divides the CNPJ in 2 parts”).
If, when collecting data from 13 to 24 digits, the Automation uses only one part, CliSiTef will take on the responsibility of dividing it into 2 parts, however we recommend that the Automation does so, due to the following limitations:
The data size limit is 24 digits (equivalent to multiplying two (2) parts by the Maximum Limit of 12 digits);
To avoid refusal of the collection command by the PinPad, CliSiTef limits the size to 12 when sending the first collection command;
In the second collection, if the number of remaining digits in the field (result of subtracting the original size from the value 12) is less than the Minimum Limit of 4 digits, CliSiTef arbitrarily increases the size, so that the user must complete it. them with additional digits that must be discarded at the end;
Only one confirmation is displayed
It is mandatory that the Minimum and Maximum Sizes are the same (see “Example 2 - CliSiTef divides the CNPJ