<?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: Newbie - How to get declined results PHP SDK Hello World in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-How-to-get-declined-results-PHP-SDK-Hello-World/m-p/52685#M27910</link>
    <description>&lt;P&gt;You can search the github&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-php/search?utf8=%E2%9C%93&amp;amp;q=getAuthCode" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php/search?utf8=%E2%9C%93&amp;amp;q=getAuthCode&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2015 20:26:41 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2015-10-21T20:26:41Z</dc:date>
    <item>
      <title>Newbie - How to get declined results PHP SDK Hello World</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-How-to-get-declined-results-PHP-SDK-Hello-World/m-p/52684#M27909</link>
      <description>&lt;P&gt;Got "Hello World" example up and running great. But pulling hair out with trying to display errorText for decline:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an untouched snippet from Hello World. You can see if there is an error, we need more info on the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  if (($tresponse != null) &amp;amp;&amp;amp; ($tresponse-&amp;gt;getResponseCode()=="1"))
  {
    echo "Charge Credit Card AUTH CODE : " . $tresponse-&amp;gt;getAuthCode() . "\n";
    echo "Charge Credit Card TRANS ID  : " . $tresponse-&amp;gt;getTransId() . "\n";
  }
  else
  {
    echo "Charge Credit Card ERROR :  Invalid response\n";
  }
}  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not for the life of me, figure out how to display the errorText and errorCode. I have tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;echo "Card declined reason: " . $tresponse-&amp;gt;getErrors[0]-&amp;gt;errorText;&lt;/PRE&gt;&lt;P&gt;and every possible variation of this you can imagine and nothing works. None of the examples or samples go beyond the "Hello World" example if declined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize this may be 101 coding, but I can't figure this one out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 19:10:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-How-to-get-declined-results-PHP-SDK-Hello-World/m-p/52684#M27909</guid>
      <dc:creator>Tunnelboy</dc:creator>
      <dc:date>2015-10-21T19:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie - How to get declined results PHP SDK Hello World</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-How-to-get-declined-results-PHP-SDK-Hello-World/m-p/52685#M27910</link>
      <description>&lt;P&gt;You can search the github&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-php/search?utf8=%E2%9C%93&amp;amp;q=getAuthCode" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php/search?utf8=%E2%9C%93&amp;amp;q=getAuthCode&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 20:26:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-How-to-get-declined-results-PHP-SDK-Hello-World/m-p/52685#M27910</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2015-10-21T20:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie - How to get declined results PHP SDK Hello World</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-How-to-get-declined-results-PHP-SDK-Hello-World/m-p/52700#M27923</link>
      <description>&lt;P&gt;Thanks. I did that well before I posted this message. No luck or mention or examples of retrieving the errortext.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 22:16:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-How-to-get-declined-results-PHP-SDK-Hello-World/m-p/52700#M27923</guid>
      <dc:creator>Tunnelboy</dc:creator>
      <dc:date>2015-10-22T22:16:31Z</dc:date>
    </item>
  </channel>
</rss>

