473,757 Members | 10,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using a Credit Card Reader

Not sure if this is a good place to post this... I'm writing and ASP.net
app using vb .net. I need to interact with a credit card reader. I have
one that sits inline with the keyboard. Works great, except for the fact
that no matter what field the user is in on the transaction page (Name,
Address, Credit Card number) the reader will dump the data at the cursor.
So, if the user is in the name field and they happen to swipe the card,
that's where the info goes.

has anyone worked with this type of thing before? Is there a way to disable
the card reader or detect that the info is coming from the reader? So I can
only enable it when the user is in the proper field, or move the data to the
proper field when it's detected... Thanks.

J
Nov 21 '05 #1
12 11176
make sure that you are on the credit card field before you enable that
keypress. If the credit card reader is on the keyboard it self then make
sure that it is eather disabled untill that field has focus.. or make sure
that the credit card keypress is bypassed unless the credit card field has
focus
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Not sure if this is a good place to post this... I'm writing and ASP.net
app using vb .net. I need to interact with a credit card reader. I have
one that sits inline with the keyboard. Works great, except for the fact
that no matter what field the user is in on the transaction page (Name,
Address, Credit Card number) the reader will dump the data at the cursor.
So, if the user is in the name field and they happen to swipe the card,
that's where the info goes.

has anyone worked with this type of thing before? Is there a way to
disable
the card reader or detect that the info is coming from the reader? So I
can
only enable it when the user is in the proper field, or move the data to
the
proper field when it's detected... Thanks.

J

Nov 21 '05 #2
That's what I can't figure out how to do. There doesn't seem to be a way to
programatically interact with the card reader.
"Chris" <cc*********@ho tmail.com> wrote in message
news:uE******** ******@TK2MSFTN GP12.phx.gbl...
make sure that you are on the credit card field before you enable that
keypress. If the credit card reader is on the keyboard it self then make
sure that it is eather disabled untill that field has focus.. or make sure
that the credit card keypress is bypassed unless the credit card field has
focus
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Not sure if this is a good place to post this... I'm writing and ASP.net app using vb .net. I need to interact with a credit card reader. I have one that sits inline with the keyboard. Works great, except for the fact that no matter what field the user is in on the transaction page (Name,
Address, Credit Card number) the reader will dump the data at the cursor. So, if the user is in the name field and they happen to swipe the card,
that's where the info goes.

has anyone worked with this type of thing before? Is there a way to
disable
the card reader or detect that the info is coming from the reader? So I
can
only enable it when the user is in the proper field, or move the data to
the
proper field when it's detected... Thanks.

J


Nov 21 '05 #3

"Jerry Camel" <rl*****@msn.co m> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Not sure if this is a good place to post this... I'm writing and ASP.net
app using vb .net. I need to interact with a credit card reader. I have
one that sits inline with the keyboard. Works great, except for the fact
that no matter what field the user is in on the transaction page (Name,
Address, Credit Card number) the reader will dump the data at the cursor.
So, if the user is in the name field and they happen to swipe the card,
that's where the info goes.

has anyone worked with this type of thing before? Is there a way to disable
the card reader or detect that the info is coming from the reader? So I can
only enable it when the user is in the proper field, or move the data to the
proper field when it's detected... Thanks.

J


I did a quick Google search on this subject and there seems to not be any real info out there to do this in VB.NET. Maybe, the
manufacturer of the reader you are using has a SDK for their reader. It might not be for VB.NET, but, might be something that
you could convert.
Sorry I could not offer a better suggestion.
james

Nov 21 '05 #4
The keyboard reader should send characters to the KeyPress Event of whatever
control has the focus at the time the card is read. You should be able to
use the Form.KeyPreview set to True and then in the KeyPress Event of the
Form that is active, intercept the characters as they are sent. I suspect
that the first character sent to the Keypress event will be a special
character to signal that a string of characters from the card reader is being
sent. You can then add the characters in a string in the KeyPress event
until the ending special character is sent. Not sure about this but might
work.

"james" wrote:

"Jerry Camel" <rl*****@msn.co m> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Not sure if this is a good place to post this... I'm writing and ASP.net
app using vb .net. I need to interact with a credit card reader. I have
one that sits inline with the keyboard. Works great, except for the fact
that no matter what field the user is in on the transaction page (Name,
Address, Credit Card number) the reader will dump the data at the cursor.
So, if the user is in the name field and they happen to swipe the card,
that's where the info goes.

has anyone worked with this type of thing before? Is there a way to disable
the card reader or detect that the info is coming from the reader? So I can
only enable it when the user is in the proper field, or move the data to the
proper field when it's detected... Thanks.

J


I did a quick Google search on this subject and there seems to not be any real info out there to do this in VB.NET. Maybe, the
manufacturer of the reader you are using has a SDK for their reader. It might not be for VB.NET, but, might be something that
you could convert.
Sorry I could not offer a better suggestion.
james

Nov 21 '05 #5
I have been working on a project using a magnetic swipe card reader
(basically a credit card reader) with vb.net for the last few months.
It sounds like the type of reader you have is what is called a
"keyboard wedge". That type emualtes a keyboard. So, when a card is
passed through the reader, what it reads off of the card is passed back
as if someone were manually typing it in on the keyboard. So, whatever
control has focus, the text property will be set to that value.

I am using the type of reader that is not a "keyboard wedge". With it,
I am able to raise an event when the reader detects that a card has
been passed through it and pass the value read from the card along with
the event. I am then able to do what I want with the value.

When I researched the hardware, the prices were basically the same for
the "keyboard wedge" style and the other style.

So, unless you can get the manufacturer to assist in how to disable the
credit card reader, you may want to look at the other type of reader.
In my situation, we did not want the reader mounted on the keyboard, it
is connected to the PC via USB connection and then mounted near the PC.

Hope this helps.

Nov 21 '05 #6
Thanks, Darrin. This is what I figured... I'll have to search for a
different card reader. Can you give me the make/model of what you're using?
Thanks.

J

"Darrin" <bl*****@hotmai l.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com...
I have been working on a project using a magnetic swipe card reader
(basically a credit card reader) with vb.net for the last few months.
It sounds like the type of reader you have is what is called a
"keyboard wedge". That type emualtes a keyboard. So, when a card is
passed through the reader, what it reads off of the card is passed back
as if someone were manually typing it in on the keyboard. So, whatever
control has focus, the text property will be set to that value.

I am using the type of reader that is not a "keyboard wedge". With it,
I am able to raise an event when the reader detects that a card has
been passed through it and pass the value read from the card along with
the event. I am then able to do what I want with the value.

When I researched the hardware, the prices were basically the same for
the "keyboard wedge" style and the other style.

So, unless you can get the manufacturer to assist in how to disable the
credit card reader, you may want to look at the other type of reader.
In my situation, we did not want the reader mounted on the keyboard, it
is connected to the PC via USB connection and then mounted near the PC.

Hope this helps.

Nov 21 '05 #7
You don't have to get a separate card reader...see my previous note on this
thread. If you use a separate card reader, then you will have to read from a
serial, USB, Parallel, etc. port. I've used one and it's a PAIN!

"Jerry Camel" wrote:
Thanks, Darrin. This is what I figured... I'll have to search for a
different card reader. Can you give me the make/model of what you're using?
Thanks.

J

"Darrin" <bl*****@hotmai l.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com...
I have been working on a project using a magnetic swipe card reader
(basically a credit card reader) with vb.net for the last few months.
It sounds like the type of reader you have is what is called a
"keyboard wedge". That type emualtes a keyboard. So, when a card is
passed through the reader, what it reads off of the card is passed back
as if someone were manually typing it in on the keyboard. So, whatever
control has focus, the text property will be set to that value.

I am using the type of reader that is not a "keyboard wedge". With it,
I am able to raise an event when the reader detects that a card has
been passed through it and pass the value read from the card along with
the event. I am then able to do what I want with the value.

When I researched the hardware, the prices were basically the same for
the "keyboard wedge" style and the other style.

So, unless you can get the manufacturer to assist in how to disable the
credit card reader, you may want to look at the other type of reader.
In my situation, we did not want the reader mounted on the keyboard, it
is connected to the PC via USB connection and then mounted near the PC.

Hope this helps.


Nov 21 '05 #8
BW
I had this problem a few years back at another company.

We had Cherry (yes, that was the name) keyboards and the reader was built
into the keyboard.

What these keyboards do, and I suspect your reader does the same thing, is
send a control character at the start of the input and a control character
at the end of the input, basically they were acting as a delimiter to the
card information. In the keypress event of the form we would look for the
control character (much like you would if you were looking for say ctrl+l)
then we would change focus to where we needed it, in our case it was a
hidden textbox and read in the string. When the text box read in the ending
control character we would stop reading into our hidden text box and put
focus back to the original control.

The control character could be set through some dip switches under a panel
on the bottom of the keyboard. You could even have it not send control
characters (this was fairly pointless).

Do you have any documentation for the reader at all? This should tell you
how to set the control characters. If you don't have docs, check with then
manufacturer or look on the internet for the make and model of the device.

HTH
BW
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Not sure if this is a good place to post this... I'm writing and ASP.net
app using vb .net. I need to interact with a credit card reader. I have
one that sits inline with the keyboard. Works great, except for the fact
that no matter what field the user is in on the transaction page (Name,
Address, Credit Card number) the reader will dump the data at the cursor.
So, if the user is in the name field and they happen to swipe the card,
that's where the info goes.

has anyone worked with this type of thing before? Is there a way to disable the card reader or detect that the info is coming from the reader? So I can only enable it when the user is in the proper field, or move the data to the proper field when it's detected... Thanks.

J

Nov 21 '05 #9
off the top of my head a less than elegant work-around comes to mind -- it
seems that this problem could be resolved by either capturing keyboard
events at the form level or by limiting other fields to non-numeric data --
granted, not a perfect solution, but it is better than the current
situation...

"Jerry Camel" <rl*****@msn.co m> wrote in message
news:OM******** ********@TK2MSF TNGP12.phx.gbl. ..
That's what I can't figure out how to do. There doesn't seem to be a way
to
programatically interact with the card reader.
"Chris" <cc*********@ho tmail.com> wrote in message
news:uE******** ******@TK2MSFTN GP12.phx.gbl...
make sure that you are on the credit card field before you enable that
keypress. If the credit card reader is on the keyboard it self then make
sure that it is eather disabled untill that field has focus.. or make
sure
that the credit card keypress is bypassed unless the credit card field
has
focus
"Jerry Camel" <rl*****@msn.co m> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> Not sure if this is a good place to post this... I'm writing and ASP.net > app using vb .net. I need to interact with a credit card reader. I have > one that sits inline with the keyboard. Works great, except for the fact > that no matter what field the user is in on the transaction page (Name,
> Address, Credit Card number) the reader will dump the data at the cursor. > So, if the user is in the name field and they happen to swipe the card,
> that's where the info goes.
>
> has anyone worked with this type of thing before? Is there a way to
> disable
> the card reader or detect that the info is coming from the reader? So
> I
> can
> only enable it when the user is in the proper field, or move the data
> to
> the
> proper field when it's detected... Thanks.
>
> J
>
>



Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3356
by: Simon Wigzell | last post by:
My client wants to have credit card information fields on his forms for his website visitors to be able to buy his wervices by credit card. The credit card info - Brand, number and expiry date will be sent to the server and stored in the database as the .asp page calls itself on Submit. How secure is this? I've never had to worry about it before but is form information encrypted before being sent to the server? Are there any legal...
112
10353
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please, share your experience in using IDENTITY as PK .
10
4152
by: dries | last post by:
A friend of mine has a problem with his credit card validation routine and it is probably a simple thing to solve but I cannot find it. It has to do with the expiry dates. What happens is that as each month passes, that month is then not recognised as being valid, even though the year makes it still valid. i.e. the number of the month entered has to be bigger than the number of the current month. Therefor, if it is in august now 09/2005...
7
7005
by: gj | last post by:
I have an application in Access 97 I will be rewriting in the latest version of Access in 6 months. In the meantime, does anyone know of an ActiveX control I can add into an Access 97 form to allow the validation of Credit Card numbers and also processing of payments. Ta very muchly. GJ
4
8107
by: gl | last post by:
I have just started a project that's going to do very heavy credit card processing through asp.net and i had some questions. I've never really done any cc processing through code and I wasn't sure where to get started. Can anyone suggest a particular gateway or cc processor? I saw a component called ..net charge that seems really promising, has anyone used it? Have any of you done a full e-commerce site and have some suggestions? What is...
6
10957
by: Grant | last post by:
Does any one know how to check the algorithm of the credit card number that was entered in the text box? I want to be able to make sure the users enter correct credit card number since we will process it manually via phone. I want this to be done on the server side behind the code in ASP.Net. Thanks
9
2326
by: nm | last post by:
Hi, I am a developer quite familiar with the C# language and .NET framework. I develop mainly data driven websites. All of our past clients have shopping cart systems developed by me in ASP.NET with the final checkout process also being written by me and handled over SSL. However for all past clients we have simply "taken" the credit card information via the website and the client of ours then reviews the orders (via SSL as well of...
3
1701
by: mikekissman | last post by:
I've built an online reservation website in ASP .NET with a SQL Server backend. It allows customers to search for available resources, than charges their credit card a fee to hold the reservation. Here's how I have it arranged now: 1. Find available resource 2. Store reservation info in database 3. Charge credit card The problem is, if the credit card fails, I have to go back and delete
1
2969
by: securedcardss | last post by:
http://card.2youtop.info secured credit card card credit instant secured card cash credit secured card
0
9489
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9906
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9737
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.