16 "amx" =>
'/^3[47].{13}$/',
17 "dlt" =>
'/^4.{15}$/',
18 "dnc" =>
'/^30[0-5].{11}$|^3[68].{12}$/',
19 "dsc" =>
'/^6011.{12}$/',
20 "enr" =>
'/^2014.{11}$|^2149.{11}$/',
21 "jcb" =>
'/^3.{15}$|^2131|1800.{11}$/',
22 "mcd" =>
'/^5[1-5].{14}$/',
23 "swi" =>
'/^[456].{15}$|^[456].{17,18}$/',
24 "vis" =>
'/^4.{15}$|^4.{12}$/',
40 if (isset($this->_aCardsInfo[$sType])) {
41 $blValid = preg_match($this->_aCardsInfo[$sType], $sNumber);
59 $sYears = substr($sDate, 2, 2);
60 $sMonth = substr($sDate, 0, 2);
61 $sDay = date(
"t", mktime(11, 59, 59, $sMonth, 1, $sYears));
63 $iExpDate = mktime(23, 59, 59, $sMonth, $sDay, $sYears);
64 if (time() > $iExpDate) {
82 if (($iLength = strlen($sNumber))) {
87 for ($iPos = 0; $iPos < $iLength; $iPos++) {
90 $iCurrDigit = ( int ) $sNumber{$iPos};
93 $iAddValue = (($iPos % 2 == $iMod) ? 2 : 1) * $iCurrDigit;
96 $iModSum += ($iAddValue > 9) ? $iAddValue - 9 : $iAddValue;
99 $blValid = ($iModSum % 10) == 0;
117 $sNumber = preg_replace(
"/[^0-9]/",
"", $sNumber);