FinancialCardTrackOne

This class represents track one of a financial card.

package

Application

Methods

Gets the account number on the card.

getAccountNumber() : mixed

Response

mixed

Gets the vendor-specific discretionary data on the card.

getDiscretionaryData() : string

Response

string

Gets the expiration date on the card.

getExpiration() : \com\scriptel\Date

Response

\com\scriptel\Date

Gets the first name on the card.

getFirstName() : mixed

Response

mixed

Gets the last name on the card.

getLastName() : string

Response

string

Gets the service code on the card.

getServiceCode() : string

Response

string

This method attempts to parse track one of the raw track string.

parse(stringtrackData) : \com\scriptel\FinancialCardTrackOne
static

Arguments

trackData

string

Response

\com\scriptel\FinancialCardTrackOne

Sets the account number on the card.

setAccountNumber(stringcardNumber) : mixed

Arguments

cardNumber

string

Response

mixed

Sets the vendor-specific discretionary data.

setDiscretionaryData(stringdiscretionaryData) : mixed

Arguments

discretionaryData

string

Response

mixed

Sets the expiration date on the card.

setExpiration(\com\scriptel\Dateexpiration) : mixed

Arguments

expiration

\com\scriptel\Date

Response

mixed

Sets the first name on the card.

setFirstName(stringfirstName) : mixed

Arguments

firstName

string

Response

mixed

Sets the last name on the card.

setLastName(stringlastName) : mixed

Arguments

lastName

string

Response

mixed

Sets the service code on the card.

setServiceCode(stringserviceCode) : mixed

Arguments

serviceCode

string

Response

mixed

Returns this object as a human readable string.

toString() : string

Response

string

Properties

The credit card number of this financial card.

accountNumber : string
var

Type(s)

string

The first name on the card.

firstName : string
var

Type(s)

string

The last name on the card.

lastName : string
var

Type(s)

string

The expiration date on the card.

expiration : \com\scriptel\Date
var

Type(s)

\com\scriptel\Date

The service code on the card.

serviceCode : string
var

Type(s)

string

Optional additional date the issuer has added on the strip.

discretionaryData : string
var

Type(s)

string