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
Solved

Magnetic Card Reader/Writer

Posted on 2003-11-05
5
2,317 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

861 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