Algorithm for Credit Card Number Validation Needed

I am trying to locate the algorithm used to verify credit card numbers.  Does anyone have that or know where it can be found?
pagedesignsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mgfranzConnect With a Mentor Commented:
Cool, glad to have helped.  :-)

Happy Holidays!

Mark
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
ozoCommented:
#!/usr/bin/perl
use Business::CreditCard;
print validate("5276 4400 6542 1319");
print cardtype("5276 4400 6542 1319");
0
 
TTomCommented:
http://developer.netscape.com/docs/examples/javascript/formval/FormChek.js

is a form validator example from NS, using JS 1.0.

It contains a section for validating credit cards (numbers and types).  This is probably what you are looking for.

Tom
0
 
mgfranzCommented:
I must be reading the question wrong... do you want to validate the field entry for proper credit card format, or do you need an authorization code to verify the card info is ok to order against?
0
 
TTomCommented:
Maybe it's me reading it wrong.  I thought it was just to validate for input, not authorization.

Tom
0
 
pagedesignsAuthor Commented:
Thanks everyone for your help!

The leads from mgfranz resulted in the information I needed.

mgfranz, if you will reply to this as an "answer" to the question, I will award you the 200 points.

Regards,

pagedesigns
0
All Courses

From novice to tech pro — start learning today.