FinancialCardIssuer

This class attempts to identify credit card issuers based on patterns in the numbers each vendor issues.

package

Application

Methods

Constructor, creates a new instance of this class.

__construct(mixedissuerName) : mixed

Arguments

issuerName

mixed

Response

mixed

Gets the issuer name.

getIssuerName() : string

Response

string

Human-friendly issuer name.

This method attempts to identify the issuer of a credit card based on a credit card number.

identifyByCardNumber(stringcardNumber) : \com\scriptel\FinancialCardIssuer
static

Arguments

cardNumber

string

Number to inspect.

Response

\com\scriptel\FinancialCardIssuer

Issuer if identified, UNKNOWN otherwise.

Sets the issuer name.

setIssuerName(stringissuerName) : mixed

Arguments

issuerName

string

Response

mixed

Constants

AMERICAN_EXPRESS

AMERICAN_EXPRESS

DINERS_CLUB

DINERS_CLUB

CARTE_BLANCH

CARTE_BLANCH

DISCOVER

DISCOVER

ENROUTE

ENROUTE

JCB

JCB

MASTER_CARD

MASTER_CARD

VISA

VISA

UNKNOWN

UNKNOWN

Properties

Contains the set issuer name.

issuerName :