<?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: Charge declined, but $response-&amp;gt;error_message returns false in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-declined-but-response-gt-error-message-returns-false/m-p/33816#M18316</link>
    <description>&lt;P&gt;anet_php_sdk-1.1.8.zip\anet_php_sdk\lib\AuthorizeNetAIM.php&lt;/P&gt;&lt;P&gt;doesn't look like error_message is set for decline&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2013 00:35:18 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-04-03T00:35:18Z</dc:date>
    <item>
      <title>Charge declined, but $response-&gt;error_message returns false</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-declined-but-response-gt-error-message-returns-false/m-p/33815#M18315</link>
      <description>&lt;P&gt;I'm running my own PHP script to process transactions. The relevant section looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$fields = array(&lt;BR /&gt;&amp;nbsp; 'first_name' =&amp;gt; $cardholder_first,&lt;BR /&gt;&amp;nbsp; 'last_name' =&amp;gt; $cardholder_last,&lt;BR /&gt;&amp;nbsp; 'company' =&amp;gt; $company,&lt;BR /&gt;&amp;nbsp; 'address' =&amp;gt; $street1,&lt;BR /&gt;&amp;nbsp; 'city' =&amp;gt; $city,&lt;BR /&gt;&amp;nbsp; 'state' =&amp;gt; $state,&lt;BR /&gt;&amp;nbsp; 'zip' =&amp;gt; $zip,&lt;BR /&gt;&amp;nbsp; 'country' =&amp;gt; "US",&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'phone' =&amp;gt; $tele,&lt;BR /&gt;&amp;nbsp; 'email' =&amp;gt; $email,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'description' =&amp;gt; "Advertisement on $site",&lt;BR /&gt;&amp;nbsp; 'amount' =&amp;gt; $value,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'card_num' =&amp;gt; $ccn_dec,&lt;BR /&gt;&amp;nbsp; 'exp_date' =&amp;gt; sprintf('%02d%02d', $expire_month, ($expire_year % 1000)),&lt;BR /&gt;&amp;nbsp; 'card_code' =&amp;gt; $cvc2&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;setFields($fields);&lt;BR /&gt;$response = $transaction-&amp;gt;authorizeOnly();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($response-&amp;gt;approved) $this_response = $response-&amp;gt;transaction_id;&lt;BR /&gt;else $this_response = $response-&amp;gt;error_message;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// for testing&lt;/P&gt;&lt;P&gt;echo $this_response;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the transaction is approved, I'm getting a transaction ID as expected, But I had one to decline today, and it just returned empty; either "false" or "", I'm not sure which.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I logged in to Auth.net, it listed the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Declined&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;(Card declined by issuer - Contact card issuer to determine reason.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Address Verification Status: No match on Street and Zip (N)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question now is, why didn't $this_response equal one of those two errors? I'm pretty sure that this USED to work, but now I'm questioning whether it's always had a problem, and I've just now discovered it. If so, then I'm sure I've had a lot of customers that were declined but didn't get the error message, so they just thought that I had ignored them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 00:18:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-declined-but-response-gt-error-message-returns-false/m-p/33815#M18315</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2013-04-03T00:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Charge declined, but $response-&gt;error_message returns false</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-declined-but-response-gt-error-message-returns-false/m-p/33816#M18316</link>
      <description>&lt;P&gt;anet_php_sdk-1.1.8.zip\anet_php_sdk\lib\AuthorizeNetAIM.php&lt;/P&gt;&lt;P&gt;doesn't look like error_message is set for decline&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 00:35:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-declined-but-response-gt-error-message-returns-false/m-p/33816#M18316</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-03T00:35:18Z</dc:date>
    </item>
  </channel>
</rss>

