Capturing a credit card swipe

Capturing a credit card swipe

Postby TimStone » Sat May 23, 2009 3: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Capturing a credit card swipe

Postby James Bott » Sat May 23, 2009 6: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 97 guests