1 Reply Latest reply on Jul 30, 2012 4:42 PM by Darryn Campbell

    Using DCR with RhoElements


      I'm trying to make an application which simulate a payment:

      • Insert Credit Card
      • PIN entry
      • Print a fake Ticket

      I can use the MSR, but I don't understand how to use credit card reader.


      Does anyone already used it ?



      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
          <title>RhoElements CardReader Test</title>
      <META HTTP-Equiv="CardReader" Content="PINEntry:ON">
      <META HTTP-Equiv="CardReader" Content="PINTimeout:30000">
      <META HTTP-Equiv="CardReader" Content="moduleName:DCR7000">
      <META HTTP-Equiv="CardReader" Content="ReadEvent:url('javascript:doTransaction('%s', '%s');')">
      <script language="javascript" type="text/javascript">
          function doTransaction(data, mode)
              switch(mode) {
              case 'CR':
                  alert('Card: '+data);
        • Re: Using DCR with RhoElements
          Darryn Campbell



          Your code looks fine, though I'd suggest taking out the moduleName property as that's really only for backwards compatibility with PocketBrowser.


          You might want to consider turning on logging (INFO level) and observing what issues come out there.


          I'm attaching my test page if it helps also


          NB: You'll need to be using a DCR7000-100 or DCR7000-200 attachment.