[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] limiting credit card types accepted?
>
> 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
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/