CORE POS - IS4C
The CORE POS front end
|
Public Member Functions | |
cardInfo ($pan) | |
accepted ($pan) | |
type ($pan) | |
issuer ($pan) | |
magstripe ($data) | |
maskPAN ($pan, $first, $last) | |
COREPOS\pos\plugins\Paycards\card\CardReader::accepted | ( | $pan | ) |
Check whether a given card is accepted
$pan | the card number |
COREPOS\pos\plugins\Paycards\card\CardReader::cardInfo | ( | $pan | ) |
Identify card based on number
$pan | card number |
EBT-Specific Notes: EBT BINs added 20Mar14 by Andy Based on NACHA document; that document claims to be current as of 30Sep10.
Issuer is normally give as EBT (XX) where XX is the two character state postal abbreviation. GUAM is Guam and USVI is US Virgin Islands. A few states list both a state BIN number and a federal BIN number. In these cases there's an asterisk after the postal abbreviation. Maine listed both a state and federal BIN but they're identical so I don't know how to distinguish. The PAN length is not listed for Wyoming. I guessed 16 since that's most common.
COREPOS\pos\plugins\Paycards\card\CardReader::issuer | ( | $pan | ) |
Get paycard issuer
$pan | the card number |
Issuers include "Visa", "American Express", "MasterCard", and "Discover". Unrecognized cards will return "Unknown".
COREPOS\pos\plugins\Paycards\card\CardReader::magstripe | ( | $data | ) |
Extract information from a magnetic stripe
$data | the stripe data |
Not all values will be found in every track. Keys with no data will be set to False.
If the data is really malformed, the return will be an error code instead of an array.
COREPOS\pos\plugins\Paycards\card\CardReader::type | ( | $pan | ) |
Determine card type
$pan | the card number |