Solved

Magnetic Card Reader/Writer

Posted on 2003-11-05
5
2,358 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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