Does anyone know of a script that determines whether a mastercard or visa card is a Debit card? Just as you can tell it's a master card if the starting 4 digits are between 5100 and 5600, and that it's a Visa card if the first digit is a 4, I assume there's some trick to know the difference between a credit and debit card.
My bank charges extra for debit cards.