Zen Cart Logo
Forums / Addon Payment Modules / does zencart authomatically check credit card validity

does zencart authomatically check credit card validity

Locked

Views: 2,243

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Sep 2006, 4:16 PM
#1
needslotsofhelp avatar

needslotsofhelp

New Zenner

Join Date:
Jul 2006
Posts:
10
Plugin Contributions:
0

does zencart authomatically check credit card validity

So far the only way to check it is through authorize.net, is there anyway to check if the credit card is valid through simple php? I know that there is a special algorithm for checking if the credit card number is valid or not.

Just to save time is there such a function in php/zen-cart?

16 Sep 2006, 4:19 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: does zencart authomatically check credit card validity

The supplied payment modules pre-validate the validity of the CC numbers automatically, using the standard MOD10 algorithms, as well as noting the typical numerical patterns of the more popular cards.

17 Sep 2006, 1:29 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: does zencart authomatically check credit card validity

... and the contribs I've looked at reuse this core logic (see includes/classes/cc_validation.php).

Good luck,
Scott