beautypg.com

MagTek 99875125 User Manual

Page 45

background image

Section 4. Magnetic Card Data Parsing


37

The application issues /get applied_fmt.
The driver responds with /get applied_fmt BankCard.
The application issues /get FirstName to the driver.
The driver responds with /get FirstName JOHN.

The application issues /get LastName to the driver.
The driver responds with /get LastName SMITH.

The application issues /get PAN to the driver.
The driver responds with /get PAN 1234567890074589.

The application issues /get ExpDate to the driver.
The driver responds with /get ExpDate 9912.

After all of the required properties have been retrieved, the application can place them in
appropriate strings as required by the application.

Note

The Properties retrieved from a magnetic card are only changed when valid
data is received. After a good card has been read, the property (e.g., PAN)
will be set to the value read from the card. If the next card read contains an
error, the previous value will still be available. This can be confusing
because the PAN, for example, will contain the value from the previous
card. In order to avoid this problem, the affected property should be
explicitly cleared after the value has been read.

It is suggested, for example, to clear the PAN after completing a transaction
by sending the following command:

/set

PAN 0