[ic] limiting credit card types accepted?
Kevin Walsh
interchange-users@interchange.redhat.com
Fri May 31 21:24:01 2002
>
> I have a functioning site, which I thought was configured to accept
> only Visa & Mastercard. However, orders are successful when
> Discover numbers are entered.
>
> ...
>
> Is there a setting to turn on credit card type validation that I've
> missed? Or does this require additional coding?
>
That would require additional coding to detect whether the card
number entered is indeed a Visa or a MasterCard. Perhaps you could
write a custom profile value check function.
For your information:
MasterCard:
Number length: 16
Number prefix: 51, 52, 53, 54 or 55
Visa:
Number length: 13 or 16
Number prefix: 4
Feel free to correct me if I'm wrong. :-)
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/