This class represents the second track of a financial card.
Methods
Gets the account number of the card in track two.
getAccountNumber() : string
Gets the discretionary data on the second track of the card.
getDiscretionaryData() : string
Gets the expiration date of the card.
getExpiration() : \com\scriptel\Date
Response
\com\scriptel\Date
Gets the service code on the card.
getServiceCode() : string
This method attempts to parse track two of the raw track string.
parse(stringtrackData) : \com\scriptel\FinancialCardTrackTwo
static
Arguments
trackData
string
Track data to parse.
Response
\com\scriptel\FinancialCardTrackTwo
data if data found, null otherwise.
Sets the account number of the card in track two.
setAccountNumber(stringaccountNumber) : mixed
Sets the discretionary data on the second track of the card.
setDiscretionaryData(stringdiscretionaryData) : mixed
Sets the expiration date of the card.
setExpiration(\com\scriptel\Dateexpiration) : mixed
Arguments
expiration
\com\scriptel\Date
Response
mixed
Sets the service code on the card.
setServiceCode(stringserviceCode) : mixed
Returns this object as a human readable string.
toString() : mixed
Properties
Credit card number.
accountNumber : string
Expiration date.
expiration : \com\scriptel\Date
Type(s)
\com\scriptel\Date
Service code.
serviceCode : string
Discretionary Data
discretionaryData : string