<?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: returns NULL even though the transaction has been created successfully in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/returns-NULL-even-though-the-transaction-has-been-created/m-p/73204#M45298</link>
    <description>&lt;P&gt;Here is the log of the call. "Response from AnetApi" is null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sun, 13 Sep 2020 00:01:32 -0700 INFO : [_sendRequest] (/app/vendor/AuthorizeNet/lib/net/authorize/util/HttpClient.php : 96) - Response from AnetApi:&lt;BR /&gt;Sun, 13 Sep 2020 00:01:32 -0700 ERROR : [execute] (/app/vendor/AuthorizeNet/lib/net/authorize/api/controller/base/ApiOperationBase.php : 146) - Error getting response from API&lt;/P&gt;</description>
    <pubDate>Sun, 13 Sep 2020 07:59:23 GMT</pubDate>
    <dc:creator>brhero</dc:creator>
    <dc:date>2020-09-13T07:59:23Z</dc:date>
    <item>
      <title>returns NULL even though the transaction has been created successfully</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/returns-NULL-even-though-the-transaction-has-been-created/m-p/73202#M45296</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm integrating Authorize.Net SDK.&lt;/P&gt;&lt;P&gt;But If I requested a real payment transaction, it returns NULL even though the transaction has been created successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tested a simple request like below.&lt;/P&gt;&lt;P&gt;The following code works and returned "&lt;SPAN&gt;Message Code: I00001 Text: Successful."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();&lt;BR /&gt;$merchantAuthentication-&amp;gt;setName('idxxxxxxxx');&lt;BR /&gt;$merchantAuthentication-&amp;gt;setTransactionKey('xxxxxxxxxxxxxxxx');&lt;/P&gt;&lt;P&gt;$refId = 'ref' . time();&lt;/P&gt;&lt;P&gt;$request = new AnetAPI\AuthenticateTestRequest();&lt;BR /&gt;$request-&amp;gt;setMerchantAuthentication($merchantAuthentication);&lt;BR /&gt;$request-&amp;gt;setRefId($refId);&lt;BR /&gt;&lt;BR /&gt;$controller = new AnetController\AuthenticateTestController($request);&lt;BR /&gt;$response = $controller-&amp;gt;executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::PRODUCTION);&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if ($response != null) {&lt;BR /&gt;&amp;nbsp; if ($response-&amp;gt;getMessages()-&amp;gt;getResultCode() == "Ok") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $message = $response-&amp;gt;getMessages()-&amp;gt;getMessage();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; echo " Message Code: " . $message[0]-&amp;gt;getCode();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; echo " Text: " . $message[0]-&amp;gt;getText();&lt;BR /&gt;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; echo "Authetication Failed";&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; print_r($response);&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp; echo "No response returned";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if I tried the sample code in the API reference, it retunred NULL too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 07:54:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/returns-NULL-even-though-the-transaction-has-been-created/m-p/73202#M45296</guid>
      <dc:creator>brhero</dc:creator>
      <dc:date>2020-09-13T07:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: returns NULL even though the transaction has been created successfully</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/returns-NULL-even-though-the-transaction-has-been-created/m-p/73204#M45298</link>
      <description>&lt;P&gt;Here is the log of the call. "Response from AnetApi" is null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sun, 13 Sep 2020 00:01:32 -0700 INFO : [_sendRequest] (/app/vendor/AuthorizeNet/lib/net/authorize/util/HttpClient.php : 96) - Response from AnetApi:&lt;BR /&gt;Sun, 13 Sep 2020 00:01:32 -0700 ERROR : [execute] (/app/vendor/AuthorizeNet/lib/net/authorize/api/controller/base/ApiOperationBase.php : 146) - Error getting response from API&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 07:59:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/returns-NULL-even-though-the-transaction-has-been-created/m-p/73204#M45298</guid>
      <dc:creator>brhero</dc:creator>
      <dc:date>2020-09-13T07:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: returns NULL even though the transaction has been created successfully</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/returns-NULL-even-though-the-transaction-has-been-created/m-p/73930#M45862</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/41688"&gt;@brhero&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Here is the log of the call. "Response from AnetApi" is null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sun, 13 Sep 2020 00:01:32 -0700 INFO : [_sendRequest] (/app/vendor/AuthorizeNet/lib/net/authorize/util/HttpClient.php : 96) - Response from AnetApi:&amp;nbsp;&lt;A href="https://pngtoico.io" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;png to ico&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;Sun, 13 Sep 2020 00:01:32 -0700 ERROR : [execute] (/app/vendor/AuthorizeNet/lib/net/authorize/api/controller/base/ApiOperationBase.php : 146) - Error getting response from API&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am having the same issue it seems.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:08:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/returns-NULL-even-though-the-transaction-has-been-created/m-p/73930#M45862</guid>
      <dc:creator>elnawilde</dc:creator>
      <dc:date>2020-11-10T07:08:44Z</dc:date>
    </item>
  </channel>
</rss>

