Example 2 - CliSiTef divides the CNPJ into 2 parts
In the following example, CNPJ 77777777333333 was collected in two parts: in the first, 12 digits and in the second 4 digits were collected.
Consider the value of the Input parameter (FieldType 669) the content below (54 characters).
011414Field 14 a | 14Confirm | CNPJ |
CliSitef reduces the Minimum and Maximum Sizes from 14 to 12 (avoiding refusal of the command by the PinPad) in first command.
The customer enters 12 digits of the CNPJ in the string 777777773333.
Next, CliSiTef requests the collection of the remaining 2 digits, increasing the Minimum and Maximum Sizes from 2 to 4 in the second collection command.
The following message appears on the PinPad display:
Continue
The customer enters the remaining 2 digits of the CNPJ and 2 additional digits just to complete the Minimum Limit of 4 digits in the string 3300.
Upon return, CliSiTef returns the Output parameter (FieldType 670) to Automation with the content below (20 characters):