Gettrack3masked – MagTek Audio Reader for Android Devices User Manual

Page 12

Advertising
background image

6

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.


For an AAMVA card, the DL/ID# 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 DL/ID#PAN are set to
zero; one of them will be set such that last digit of the DL/ID# calculates an
accurate Mod 10 check of the rest of the DL/ID# as transmitted. If the Mod 10
correction is not specified, all of the intermediate characters of the DL/ID# are set
to the specified mask character.

• The Expiration Date and Birth Date are transmitted unmasked.
• All other characters are set to the specified mask character.

getTrack3Masked

Get stored masked track3 data.

-

public String getTrack3Masked()

Parameters

Return Value

Return stored masked track3 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.

• All Field Separators are sent unmasked.

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

Advertising