How can i check if the creditcard is VISA Debit or Visa Electron? I found this example, but i don't know anything about creditcard algortime.
I know how the functions works, i am just asking how i can check if it's a VISA ELECTRON or VISA DEBIT card. Currently it only supports VISA Debits, but it need to make a check for VISA ELECTRON
$cards = array(
"visa" => "(4\d{12}(?:\d{3})?)",
"visaelectron" => "??????????????????????????",
"amex" => "(3[47]\d{13})",
"jcb" => "(35[2-8][89]\d\d\d{10})",
"maestro" => "((?:5020|5038|6304|6579|6761)\d{12}(?:\d\d)?)",
"solo" => "((?:6334|6767)\d{12}(?:\d\d)?\d?)",
"mastercard" => "(5[1-5]\d{14})",
"switch" => "(?:(?:(?:4903|4905|4911|4936|6333|6759)\d{12})|(?:(?:564182|633110)\d{10})(\d\d)?\d?)",
);
Thanks!