The command getcardvariable is used to retrieve the card number when passed through a magnetic reader.
- firstmessage [string]
Message that appears before the card is passed through the magnetic reader.
- maximum [integer]
The maximum size of the card number.
- minimum [integer]
The minimum size of the card number.
- secondmessage [string]
Message that appears when the user presses the Enter key.
- variable [string]
Variable that will store the function return.
In the example above, when the card is passed through the magnetic reader, the number will be displayed.