Gettrack1masked, Gettrack2masked – MagTek Audio Reader User Manual

Page 12

Advertising
background image

6

getTrack1Masked

Retrieve Masked Track1 if any

- (

NSString

*) getTrack1


Parameters

Return Value

Return stored masked track1 data string.

For an ISO/ABA card, the PAN is masked as follows:

• The specified number of initial characters is sent unmasked. The specified

number of trailing characters is sent unmasked. If Mod 10 correction is specified,
all but one of the intermediate characters of the PAN are set to zero; one of them
will be set such that last digit of the PAN calculates an accurate Mod 10 check of
the rest of the PAN as transmitted. If the Mod 10 correction is not specified, all
of the intermediate characters of the PAN are set to the specified mask character.

• The Card Holder’s name and the Expiration Date are transmitted unmasked.

• All Field Separators are sent unmasked.

• All other characters are set to the specified mask character.


For an AAMVA card, the specified mask character is substituted for each of the characters read
from the card.

getTrack2Masked

Retrieve Masked Track2 if any

- (

NSString

*) getTrack2

Parameters

Return Value

Return stored masked track2 data string.

For an ISO/ABA card, the PAN is masked as follows:

• The specified number of initial characters are sent unmasked. The specified

number of trailing characters are sent unmasked. If Mod 10 correction is
specified, all but one of the intermediate characters of the PAN are set to zero;
one of them will be set such that last digit of the PAN calculates an accurate Mod
10 check of the rest of the PAN as transmitted. If the Mod 10 correction is not
specified, all of the intermediate characters of the PAN are set to the specified
mask character.

• The Expiration Date is transmitted unmasked.

• All Field Separators are sent unmasked.
• All other characters are set to the specified mask character.

Advertising