File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How Credit card Validation is Happening Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How Credit card Validation is Happening" Watch "How Credit card Validation is Happening" New topic

How Credit card Validation is Happening

santhakumar samaraj

Joined: Jul 07, 2008
Posts: 2
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?

[edit]Get rid of UPPER-CASE. CR[/edit]
[ July 07, 2008: Message edited by: Campbell Ritchie ]
Gavin Tranter
Ranch Hand

Joined: Jan 01, 2007
Posts: 333
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.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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.
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

Hi santhakumar samaraj welcome to Javaranch,
Firstly KeepItDown and also please take a glance through the Ask Good Questions link below.


|Asking Good Questions|
Santosh Naik

Joined: Mar 15, 2008
Posts: 9
Please refer the Petstore Web 2.0 blue print application from Sun. It will help you.

SCEA, SCJP and IBM Certified XML Developer
I agree. Here's the link:
subject: How Credit card Validation is Happening
It's not a secret anymore!