V. javascript api functions, Setcarddata(value), Setcarddatamsk(value) – MagTek JMTMacMS Applet User Manual

Page 7: Setpan(value), Setfirstname(value), Setlastname(value), Setmonth(value), Setyear(value), Setcarddata( value ), Setcarddatamsk( value )

Advertising
background image

3

V. JAVASCRIPT API FUNCTIONS


When a card is swiped through Card Reader device, the JMTMacMS Applet sends card

data to the browser by calling several JavaScript functions. The following JavaScript functions
will be called by the JMTMacMS Applet every time a card is swiped and new data is collected
from HID reader device:

SetCardData(value)

JMTMacMS Applet calls this function to send the host card data.

SetCardDataMsk(value)

JMTMacMS Applet calls this function to send the host the masked card data.

SetPAN(value)

JMTMacMS Applet calls this function to send the host the PAN number.

SetFirstName(value)

JMTMacMS Applet calls this function to send the host First Name extracted from the track

data.

SetLastName(value)

JMTMacMS Applet calls this function to send the host Last Name extracted from the track

data.

SetMonth(value)

JMTMacMS Applet calls this function to send the host the month extracted from the track

data.

SetYear(value)

JMTMacMS Applet calls this function to send the host the year extracted from the track

data.

Advertising