hi, can someone explain, how creditcard validation is happening in java? Since we may have some application and there we will be entering creditcard details, but creditcards may be from some HSBC or ICICI bank,, So, from our application, how it is validating, is it a valid creditcard?
Get rid of UPPER-CASE. CR[/edit] [ July 07, 2008: Message edited by: Campbell Ritchie ]
Joined: Jan 01, 2007
In my experience this is usual better left to a 3rd party service to handle for you.
If you didnt want to use a 3rd party, then you will have to write it yourself, as to knowledge it is not a part of Java, it is a general computational task.
Joined: Mar 22, 2005
The Apache Commons library has a class that validates the CC number. If you want to validate whether the card itself is valid, then you need to sign up with a merchant processing service and use its API. That will cost you money for each check. Google for "creditcard merchant processing" to find such companies.