• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Implementation of Credit Card transaction

 
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have completed a registration module in which at the end I ask for credit card information and I don't know how should I implement it We ask credit card information like,

- Credit Card Type (We want to offer Master Card, Visa, Paypal)
- Credit Card Number
- Expiration Date (Month and Year)
(We don't ask for 3 digit security code).

I want to do something like,

1) Validate the credit card
2) If it's valid, deduct the money

How can I implement this? or What is the standard way of implementation?
Are APIs for Java in market for this?
Is it against the law to store credit card information?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need to get a merchant account with a bank, and sign up with a payment processing company. Googling for that will find many vendors. Each has its own API that you'll need to use. Paypal has its own API; check with them for details.

It's not against the law to store CC information.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...and sign up with a payment processing company

Is it possible to eliminate this step? Can we communicate directly with credit card company itself?
 
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are going to store credit card information you had better properly secure it and test and monitor it constantly. If that data get stolen...

You are much better off using a service that handles the CC processing or has a proven API. It is cheaper, easier, and generally more secure.

Don't roll your own.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rusty and Ulf. Now my wheel has started rollling. I will surely come back with more questions.
 
reply
    Bookmark Topic Watch Topic
  • New Topic