Hi,
elninomago:
Lately we have had 12 digit visa come through instead of the standard 16.
It must have passed the Luhn check then.
elninomago:
Could someone please help with a validation for 16 digit cards only? What file must I work in to accomplish this? What would I change?
Why would you bother really? You'll have seen the card number come through like that and you obviously won't ship the order if the card can't be charged?
It's such a rare thing (I've never heard of it) that I wouldn't spend the time changing things.. but if you do want to the file is includes/modules/payment/ceon_manual_card.php, method is pre_confirmation_check().. you could copy the minimum card holder length check and adapt it for the number.
You can "block" card lengths of less than 16 by JavaScript if you change the setting "Credit Card Number" in "Minimum Values" in the Zen Cart Configuration menu. However, they can still use 12 with JavaScript switched off.
But then again, why would you send anything to them if their card wasn't valid?
The whole exercise seems pointless to me but each unto their own, you can make your own mind up!
Please don't post again about this hear though as it's not something of use in general I don't think... you could start a new thread if you want to talk more about it.. I'd like to keep this thread to Ceon Manual Card issues only.
Thanks!
All the best..
Conor
ceon