FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Capturing a credit card swipe
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Capturing a credit card swipe
Posted: Sat May 23, 2009 03:55 AM

I need to catch a credit card swipe from a a reader strip. It basically acts as keyboard input.

I can do this but its not very "elegant". I created a MsgGet( ), hide the field, and have an accept and cancel button.

When card is swiped, I don't display anything. I simply hold the data in memory and when I press the accept button it tests to see if it was a valid read. If not, they re-do the full process.

Has anyone worked out some clean code for capturing a card reader ?

I'd appreciate your ideas !

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Capturing a credit card swipe
Posted: Sat May 23, 2009 06:17 PM

I don't have any such code, but I do have an idea.

Instead of Accept and Cancel buttons, just use a DO WHILE loop with maybe a one second delay and keep checking the get to see if it contains any data. When it does, do the validity check and proceed automatically.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion