MagTek JMSR Applet for MagTek User Manual

Page 7

Advertising
background image

3

4. JavaScript functions

When a card is swiped through Card Reader device, the JMSR Applet sends card data to the
browser by calling several JavaScript functions. The following JavaScript functions will be
called by the JMSR applet every time new data is collected from Card Reader device:

SetCardData(value)

When this function is called by JMSR applet, it receives the card data.


SetCardDataMsk(value)

When this function is called by JMSR applet, it receives the masked card data.


SetPAN(value)

When this function is called by JMSR applet, it receives the PAN number.


SetFirstName(value)

When this function is called by JMSR applet, it receives the First Name from the track
data.


SetLastName(value)

When this function is called by JMSR applet, it receives the Last Name from the track
data.


SetMonth(value)

When this function is called by JMSR applet, it receives the month from the track data.


SetYear(value)

When this function is called by JMSR applet, it receives the year from the track data.


SetTrack1Len(value)

When this function is called by JMSR applet, it receives the length of track1 data.


SetTrack2Len(value)

When this function is called by JMSR applet, it receives the length of track2 data.


SetTrack3Len(value)

When this function is called by JMSR applet, it receives the length of track3 data.

Advertising