Solved

Magnetic Card Reader/Writer

Posted on 2003-11-05
5
2,288 Views
Last Modified: 2012-05-04
Hi,

Anyone know how can I read/write magnetic stripe card ? I have the device installed. And now I need to access that magnetic card reader/writer via Delphi Win32 application.

If you may share some source code or know any good articles/components that I can use, please please let me know.

Thanks.
0
Comment
Question by:dudup
  • 2
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
snehanshu earned 180 total points
ID: 9692546
dudup,
  Here's a link to a similar previously asked question:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20725548.htm
HTH,
...Snehanshu

This was the accepted answer:

Accepted Answer from Peter_
Date: 09/01/2003 08:13PM IST  Accepted Answer  

To read a creditcard, you use a magnetic cardreader.
This is a rather simple hardware device that connects to the computer using serial port (com). The standard defines 3 different tracks for storing data, not all readers can read all tracks. Most common is reading Track2 for creditcards.

You may communicate with the cardreader using any delphi serial-port component. There are quite a few good ones as freeware or open source. They all work about the same, you set up a handler for the "on data event". You may look at this webpage to see how card data is decoded: http://www.gis.net/~dnegro/cardReader.txt

Once you have the card number, there are some "quick checks" you can run to see that this is a valid cardnumber and that the card is of a type you choose to accept (this would depend on your payment gateway).

The next step is to send the card data to a payment gateway to validate the card and reserve money. At a later stage (maybe once in every 24h, maybe a few times a week or moth dependning on the volume) you contact the payment gateway again as to actually redraw the money for each transaction. Exactly how this all works would depend on which payment gateway you choose. Many times you can send the transactions using https.
0
 
LVL 3

Expert Comment

by:Peter_
ID: 9692848
I would suggest having a look at the Async Professional components from TurboPower.

These are all top of the line professional components. Used to need a licence pretty expensive buying, but due to Turbo Power cutting down on support and further development they where issued as open source some time back and are available for download at: http://sourceforge.net/projects/tpapro/

I think you can find one that fits your interface. I don't have any sample source, but there should be some helpfiles included and samples somewhere on the net. Rather easy to use.

0
 
LVL 3

Expert Comment

by:Peter_
ID: 9692933
For more information about these components, have a look at TurboPower homepage: http://www.turbopower.com/
0
 
LVL 2

Expert Comment

by:Moroni24
ID: 9695652
If your card reader is a USB or Wedge type reader, most likely it is sending it's data directly to the keyboard buffer. You can open up notepad and swipe something to see.

If it is, then you could use the key events to get at it.
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 9714527
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now