<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ruby bug: card_type incorrectly contains last 4 digits of card number in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36175#M20140</link>
    <description>&lt;P&gt;Thanks, that is the problem.&amp;nbsp; The Ruby gem defaults the delimiter to be comma, which is not the best choice. It's an option when creating the transaction so it's easy to modify.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2013 13:32:59 GMT</pubDate>
    <dc:creator>murdocj</dc:creator>
    <dc:date>2013-10-10T13:32:59Z</dc:date>
    <item>
      <title>Ruby bug: card_type incorrectly contains last 4 digits of card number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36155#M20132</link>
      <description>&lt;P&gt;We have an application that uses the Ruby authorize-net gem (version 1.5.2).&amp;nbsp; After transactions we display the card type and last 4 digits of account_number.&amp;nbsp; In testing against the sandbox this works fine.&amp;nbsp; We just deployed to production, and what we are seeing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;response.card_type - contains the last 4 of the card number, e.g.' XXXX1234'&lt;/P&gt;&lt;P&gt;response.fields[:account_number] - empty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first I thought this was just a formatting error on our part, but I dumped the AuthorizeNet::AIM::Response object, and that has&lt;/P&gt;&lt;P&gt;...&amp;nbsp; &amp;nbsp;:account_number=&amp;gt;"", :card_type=&amp;gt;"XXXX1234" ...&lt;/P&gt;&lt;P&gt;in the @fields hash.&amp;nbsp; So either the values are being returned incorrectly or the Ruby library is parsing them incorrectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a fix for this?&amp;nbsp; Anyone else run into something similiar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks - Dave&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 16:41:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36155#M20132</guid>
      <dc:creator>murdocj</dc:creator>
      <dc:date>2013-10-09T16:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby bug: card_type incorrectly contains last 4 digits of card number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36157#M20133</link>
      <description>&lt;P&gt;Additional information: we are using AIM for integration.&amp;nbsp; The transaction is accepted and we get a successful response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 16:57:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36157#M20133</guid>
      <dc:creator>murdocj</dc:creator>
      <dc:date>2013-10-09T16:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby bug: card_type incorrectly contains last 4 digits of card number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36163#M20136</link>
      <description>&lt;P&gt;More info: I looked more closely at the response.&amp;nbsp; The error is apparently due to the original street address including a comma.&amp;nbsp; It was something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 111 Jones St, PO Box 12345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the parsing of the response, apparently this thru the authorize_net ruby code off, because I can see that everything got shifted over: the street became "111 Jones St", the city is "PO Box 12345", etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it looks like there's a bug at least commas in the input can cause problems in parsing the reply.&amp;nbsp; Is there a list of special characters that we should be filtering when submitting transactions?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 18:59:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36163#M20136</guid>
      <dc:creator>murdocj</dc:creator>
      <dc:date>2013-10-09T18:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby bug: card_type incorrectly contains last 4 digits of card number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36165#M20137</link>
      <description>&lt;P&gt;That not because special characters, it the delimited char.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://developer.authorize.net/guides/AIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=4_TransResponse.html"&gt;http://developer.authorize.net/guides/AIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=4_TransResponse.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might be able to change that in the SDK&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 21:12:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36165#M20137</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-10-09T21:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby bug: card_type incorrectly contains last 4 digits of card number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36175#M20140</link>
      <description>&lt;P&gt;Thanks, that is the problem.&amp;nbsp; The Ruby gem defaults the delimiter to be comma, which is not the best choice. It's an option when creating the transaction so it's easy to modify.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 13:32:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-bug-card-type-incorrectly-contains-last-4-digits-of-card/m-p/36175#M20140</guid>
      <dc:creator>murdocj</dc:creator>
      <dc:date>2013-10-10T13:32:59Z</dc:date>
    </item>
  </channel>
</rss>

