Usig Credit Card Reader

Discussion in 'ASP .Net' started by Jerry Camel, Apr 22, 2005.

  1. Jerry Camel

    Jerry Camel Guest

    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
     
    Jerry Camel, Apr 22, 2005
    #1
    1. Advertisements

  2. That device is known as a wedge device. It just sends the characters in like
    keyboard entry. You will have to look at the input string to determine if
    they are putting the information in the wrong field. You might use Jscript
    to look at the information which will have the special characters for credit
    cards in the string.

    "Jerry Camel" wrote:

    > 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
    >
    >
    >
     
    =?Utf-8?B?QnJlbmRvbg==?=, Apr 22, 2005
    #2
    1. Advertisements

  3. Credit card readers, like barcode scanners, act as keyboard on the web page.

    So it isn't going to be easy, unless you want to forbid the user from
    entering numbers on the other fields.
    (If this is the case, you can set up event handler for listening keyboard
    event, and jump to the credit card
    field if it sees a number)

    Oh, wait. If your credit card reader is like my barcode reader, that can be
    configured to prepend another sequence
    of letter in the beginning of returned string at can act as identifier, then
    there may be trickly things you can do......

    "Jerry Camel" <> ¦b¶l¥ó
    news: ¤¤¼¶¼g...
    > 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
    >
    >
     
    Lau Lei Cheong, Apr 23, 2005
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. redstar

    Credit card processing

    redstar, Jul 11, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,148
    redstar
    Jul 11, 2003
  2. Florian Marinoiu

    Credit card integration

    Florian Marinoiu, Jul 15, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    578
  3. Grant

    Credit Card Validation

    Grant, Jul 16, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    801
    Cowboy \(Gregory A. Beamer\)
    Jul 21, 2003
  4. Michelle A.

    Fomatting Text & Credit Card Validation

    Michelle A., Aug 26, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    1,903
    Michelle A.
    Aug 27, 2003
  5. Ray

    Credit card processing

    Ray, Nov 14, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    491
    Alek Davis
    Nov 15, 2003
  6. Guadala Harry

    Credit Card Processing

    Guadala Harry, Feb 19, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    477
    Dan Brussee
    Feb 20, 2004
  7. Ryan

    ASP.NET Credit Card Swiping

    Ryan, Mar 5, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,406
    Steve C. Orr [MVP, MCSD]
    Mar 5, 2004
  8. Pokkai Dokkai
    Replies:
    1
    Views:
    385
    Hassan Schroeder
    Mar 24, 2008
Loading...