File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

I agree. Here's the link:
subject: card processing question
jQuery in Action, 3rd edition