[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • Last Modified:

Credit Card Verification Algorithms

Does anyone use Credit Card Verification Algorithms?

Our e-commerce site sends the customer onto a merchant account where the payment transaction is processed correctly but I wanted to put in some checks at entry level as currently the website will pass you to the merchant even if you enter 123 as the credit card number.

I have heard that Credit Card Verification Algorithms are quite troublesome as they could reject a customer who is using a legitimate card number.  Does anyone out there use them and do you have a troublefree time with them?

I am coding in ASP by the way.
0
tingleweb
Asked:
tingleweb
2 Solutions
 
snoyes_jwCommented:
Here's a page that discusses credit card numbers.  
http://www.merriampark.com/anatomycc.htm

You could implement a limited version of verification, just checking that there are only numbers entered, and possibly run the Luhn algorithm for the check digit.  Depending on which cards you accept, you could also check the length and the leading digits.
0
 
mark-bCommented:
Here is one for Javascript:

http://www.evolt.org/article/rating/17/24700/

-Mark
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now