CardSwipe

This class represrnts a successful magnetic card swipe form a ScripTouch EasyScript device with a magnetic card strip reader.

package

Application

Methods

Gets the raw card swipe data.

getCardData() : string

Response

string

Gets parsed financial card data, null if not set.

getFinancialCard() : mixed

Response

mixed

Gets parsed identification card data.

getIdentificationCard() : mixed

Response

mixed

Gets the protocol version of this swipe.

getProtocolVersion() : string

Response

string

Sets the raw card swipe data.

setCardData(stringcardData) : mixed

Arguments

cardData

string

Response

mixed

Sets parsed financial card data, null if not set.

setFinancialCard(\com\scriptel\FinancialCardfinancialCard) : mixed

Arguments

financialCard

\com\scriptel\FinancialCard

Response

mixed

Sets parsed identification card data.

setIdentificationCard(\com\scriptel\IdentificationCardidentificationCard) : mixed

Arguments

identificationCard

\com\scriptel\IdentificationCard

Response

mixed

Sets the protocol version of this swipe.

setProtocolVersion(stringprotocolVersion) : mixed

Arguments

protocolVersion

string

Response

mixed

Returns this object as a human readable string.

toString() : string

Response

string

Properties

The protocol version being used to decode the string.

protocolVersion : string
var

Type(s)

string

The raw card data.

cardData : string
var

Type(s)

string

If the card is a recognizable financial card, this will contain parsed financial card data.

financialCard : \com\scriptel\FinancialCard
var

Type(s)

FinancialCard

If the card is a recognizable identification card this will contain parsed identification data.

identificationCard : \com\scriptel\IdentificationCard
var

Type(s)

IdentificationCard