• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Credit card Validation is Happening

 
santhakumar samaraj
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

[edit]Get rid of UPPER-CASE. CR[/edit]
[ July 07, 2008: Message edited by: Campbell Ritchie ]
 
Gavin Tranter
Ranch Hand
Posts: 333
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

G
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi santhakumar samaraj welcome to Javaranch,
Firstly KeepItDown and also please take a glance through the Ask Good Questions link below.


Thanks
 
Santosh Naik
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer the Petstore Web 2.0 blue print application from Sun. It will help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic