This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes card processing question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "card processing question" Watch "card processing question" New topic
Author

card processing question

Ken Boyd
Ranch Hand

Joined: Dec 10, 2003
Posts: 329
I have following question regarding credit card processing..
1. You want to deliver PIN number when credit card is valid & deduct your inventory of PIN accordingly. I mean credit card validation is done by someone else & how you will update customer account for order info & deduct your inventory?
a. Client disconnected before we can update our inventory database but credit card is valid & charged. What we should do to avoid this situation or store something in database for temp transaction & look at that data if above situation occur.
b. If everything is good like you get YES from card validation take out that product from inventory & enter order info to user account. All done IN database MySQL.
I know many card processing agency provide API & reply which indicate CC validation. If someone can give me idea about first problem that will be great.
Thank you


SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
 
GeeCON Prague 2014
 
subject: card processing question