<?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 Determining if a transaction was successful (ruby gem) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Determining-if-a-transaction-was-successful-ruby-gem/m-p/54525#M29504</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the Ruby sample code defines a successful transaction this way:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if response.messages.resultCode == MessageTypeEnum::Ok&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Successful charge (auth + capture)...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(authorization code: #{response.transactionResponse.authCode})"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(FYI, MessageTypeENum::Ok ='s "Ok")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, we are getting a resultCode of 'Ok' but when we check Authorizenet itself, we find that the transaction (charge) was declined.&amp;nbsp; We're using the 4111... test card number and the 46282 zip code. &amp;nbsp;Our sandbox account is in LIVE mode.&lt;BR /&gt;&lt;BR /&gt;We have determined that it is necessary to do this:&lt;BR /&gt;&lt;BR /&gt;if @processor_response_raw.messages.resultCode == 'Ok' &amp;amp;&amp;amp;&amp;nbsp;&amp;nbsp;@processor_response_raw.transactionResponse.responseCode == '1'&lt;BR /&gt;&lt;BR /&gt;Both the resultCode and responseCode must be checked.&lt;BR /&gt;&lt;BR /&gt;Every one of the 49 examples in the Ruby sample code only checks resultCode.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2016 00:10:54 GMT</pubDate>
    <dc:creator>loginfromthe101</dc:creator>
    <dc:date>2016-05-04T00:10:54Z</dc:date>
    <item>
      <title>Determining if a transaction was successful (ruby gem)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Determining-if-a-transaction-was-successful-ruby-gem/m-p/54525#M29504</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the Ruby sample code defines a successful transaction this way:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if response.messages.resultCode == MessageTypeEnum::Ok&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Successful charge (auth + capture)...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(authorization code: #{response.transactionResponse.authCode})"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(FYI, MessageTypeENum::Ok ='s "Ok")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, we are getting a resultCode of 'Ok' but when we check Authorizenet itself, we find that the transaction (charge) was declined.&amp;nbsp; We're using the 4111... test card number and the 46282 zip code. &amp;nbsp;Our sandbox account is in LIVE mode.&lt;BR /&gt;&lt;BR /&gt;We have determined that it is necessary to do this:&lt;BR /&gt;&lt;BR /&gt;if @processor_response_raw.messages.resultCode == 'Ok' &amp;amp;&amp;amp;&amp;nbsp;&amp;nbsp;@processor_response_raw.transactionResponse.responseCode == '1'&lt;BR /&gt;&lt;BR /&gt;Both the resultCode and responseCode must be checked.&lt;BR /&gt;&lt;BR /&gt;Every one of the 49 examples in the Ruby sample code only checks resultCode.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 00:10:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Determining-if-a-transaction-was-successful-ruby-gem/m-p/54525#M29504</guid>
      <dc:creator>loginfromthe101</dc:creator>
      <dc:date>2016-05-04T00:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Determining if a transaction was successful (ruby gem)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Determining-if-a-transaction-was-successful-ruby-gem/m-p/54526#M29505</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20017"&gt;@loginfromthe101﻿&lt;/a&gt;&amp;nbsp;I've passed this on to the developers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 01:51:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Determining-if-a-transaction-was-successful-ruby-gem/m-p/54526#M29505</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-05-04T01:51:04Z</dc:date>
    </item>
  </channel>
</rss>

