Magnetic stripe reader (msr) device class, Msr properties – MagTek OMTD 99875144 User Manual

Page 23

Advertising
background image

Section 4. Control Objects


17

MAGNETIC STRIPE READER (MSR) DEVICE CLASS

The following sections describe those properties and methods that are specific to the MSR device
class.

MSR Properties

Property Name

Access

Type

Description

AccountNumber R

BSTR

Account

number

obtained from the most recently

swiped card.

CapISO

R

BOOL If TRUE, the device supports ISO cards.

CapJISOne

R

BOOL If TRUE, the device supports JIS Type-I cards.

CapJISTwo

R

BOOL If TRUE, the device supports JIS Type-II cards.

DecodeData

R/W

BOOL If TRUE, each byte of track data contained within the

Track1Data, Track2Data, and Track3Data
properties is mapped from its raw format to its
corresponding decoded ASCII bit sequence. The
default is TRUE.

ErrorReportingType R/W

LONG

Specifies when an error is reported by an
ErrorEvent when a card is swiped and one or more
of the tracks specified by the TracksToRead
property contains data with errors. The default is
MSR_ERT_CARD – report errors at a card level.

ExpirationDate

R

BSTR

Expiration date as retrieved from the most recently
swiped card, as four ASCII decimal characters in the
form YYMM.

FirstName

R

BSTR

First name obtained from the most recently swiped
card.

MiddleInitial R

BSTR

Middle

initial

obtained from the most recently swiped

card.

ParseDecodedData

R/W

BOOL If TRUE, the decoded data contained within the

Track1Data and Track2Data properties is further
separated into fields for access via various other
properties. The default is TRUE.

ServiceCode R

BSTR

Service

code

obtained from the most recently swiped

card.

Suffix

R

BSTR

Suffix obtained from the most recently swiped card.

Surname

R

BSTR

Surname obtained from the most recently swiped
card.

Title

R

BSTR

Title obtained from the most recently swiped card.

Track1Data

R

BSTR

Contains either the track 1 data from the previous
card swipe or an empty string. This property
contains the track data between but not including the
start and end sentinel characters (refer to
msr.enable_sentinels).

Track1DiscretionaryData

R

BSTR

Track 1 discretionary data obtained from the most
recently swiped card.

Track2Data

R

BSTR

Contains either the track 2 data from the previous
card swipe or an empty string.

Advertising