<?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 Please help . cannot connect to transaction api in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17320#M9691</link>
    <description>&lt;DIV&gt;&lt;FONT face="Calibri"&gt;Hi, authorize develop team&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;I need some help here&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;function had been enable in the back end.&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;I download anet_php_sdk for php langauge. I setup api login id and transaction key to generate transaction file but it seems not working. Please help.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;lt;?php&lt;BR /&gt;require_once 'anet_php_sdk/AuthorizeNet.php';&lt;BR /&gt;define("AUTHORIZENET_API_LOGIN_ID", "XXXXXXX");&lt;BR /&gt;define("AUTHORIZENET_TRANSACTION_KEY", "XXXXXXX"); &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&lt;BR /&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$response = $request-&amp;gt;getSettledBatchList();&lt;BR /&gt;$batches = $response-&amp;gt;xpath("batchList/batch");&lt;BR /&gt;echo "Batch 1: {$batches[0]-&amp;gt;batchId}";&amp;nbsp;&amp;nbsp;&amp;nbsp; ---&amp;gt; line 10&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;// Get Settled Batch List&lt;BR /&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$response = $request-&amp;gt;getSettledBatchList();&lt;BR /&gt;echo count($response-&amp;gt;xml-&amp;gt;batchList-&amp;gt;batch) . " batches\n";&lt;BR /&gt;foreach ($response-&amp;gt;xml-&amp;gt;batchList-&amp;gt;batch as $batch) {&amp;nbsp;&amp;nbsp; ---&amp;gt; line 16&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Batch ID: " . $batch-&amp;gt;batchId . "\n";&lt;BR /&gt;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;// Get Transaction Details&lt;BR /&gt;$transactionId = "3866734968";&lt;BR /&gt;$response = $request-&amp;gt;getTransactionDetails($transactionId);&lt;BR /&gt;echo $response-&amp;gt;xml-&amp;gt;transaction-&amp;gt;transactionStatus;&lt;BR /&gt;echo $transactionId;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;?&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;Here is error msg I got&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&lt;STRONG&gt;Notice&lt;/STRONG&gt;: Undefined offset: 0 in &lt;STRONG&gt;C:\xampp\htdocs\athorize_detail.php&lt;/STRONG&gt; on line &lt;STRONG&gt;10&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Notice&lt;/STRONG&gt;: Trying to get property of non-object in &lt;STRONG&gt;C:\xampp\htdocs\athorize_detail.php&lt;/STRONG&gt; on line &lt;STRONG&gt;10&lt;/STRONG&gt;&lt;BR /&gt;Batch 1: 0 batches&lt;BR /&gt;&lt;STRONG&gt;Warning&lt;/STRONG&gt;: Invalid argument supplied for foreach() in &lt;STRONG&gt;C:\xampp\htdocs\athorize_detail.php&lt;/STRONG&gt; on line &lt;STRONG&gt;16&lt;/STRONG&gt;&lt;BR /&gt;AAAAAAAA&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;$transactionId = "&lt;FONT face="Calibri"&gt;AAAAAAAA&lt;/FONT&gt;﻿";&lt;BR /&gt;and this transaction id I found it 2011-09-19 11:36:08 it’s a real transaction &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;Please help why I cannot generate XML , thank you&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2011 19:23:24 GMT</pubDate>
    <dc:creator>momouhsu</dc:creator>
    <dc:date>2011-09-26T19:23:24Z</dc:date>
    <item>
      <title>Please help . cannot connect to transaction api</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17320#M9691</link>
      <description>&lt;DIV&gt;&lt;FONT face="Calibri"&gt;Hi, authorize develop team&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;I need some help here&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;function had been enable in the back end.&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;I download anet_php_sdk for php langauge. I setup api login id and transaction key to generate transaction file but it seems not working. Please help.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;lt;?php&lt;BR /&gt;require_once 'anet_php_sdk/AuthorizeNet.php';&lt;BR /&gt;define("AUTHORIZENET_API_LOGIN_ID", "XXXXXXX");&lt;BR /&gt;define("AUTHORIZENET_TRANSACTION_KEY", "XXXXXXX"); &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&lt;BR /&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$response = $request-&amp;gt;getSettledBatchList();&lt;BR /&gt;$batches = $response-&amp;gt;xpath("batchList/batch");&lt;BR /&gt;echo "Batch 1: {$batches[0]-&amp;gt;batchId}";&amp;nbsp;&amp;nbsp;&amp;nbsp; ---&amp;gt; line 10&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;// Get Settled Batch List&lt;BR /&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$response = $request-&amp;gt;getSettledBatchList();&lt;BR /&gt;echo count($response-&amp;gt;xml-&amp;gt;batchList-&amp;gt;batch) . " batches\n";&lt;BR /&gt;foreach ($response-&amp;gt;xml-&amp;gt;batchList-&amp;gt;batch as $batch) {&amp;nbsp;&amp;nbsp; ---&amp;gt; line 16&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Batch ID: " . $batch-&amp;gt;batchId . "\n";&lt;BR /&gt;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;// Get Transaction Details&lt;BR /&gt;$transactionId = "3866734968";&lt;BR /&gt;$response = $request-&amp;gt;getTransactionDetails($transactionId);&lt;BR /&gt;echo $response-&amp;gt;xml-&amp;gt;transaction-&amp;gt;transactionStatus;&lt;BR /&gt;echo $transactionId;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;?&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;Here is error msg I got&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&lt;STRONG&gt;Notice&lt;/STRONG&gt;: Undefined offset: 0 in &lt;STRONG&gt;C:\xampp\htdocs\athorize_detail.php&lt;/STRONG&gt; on line &lt;STRONG&gt;10&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Notice&lt;/STRONG&gt;: Trying to get property of non-object in &lt;STRONG&gt;C:\xampp\htdocs\athorize_detail.php&lt;/STRONG&gt; on line &lt;STRONG&gt;10&lt;/STRONG&gt;&lt;BR /&gt;Batch 1: 0 batches&lt;BR /&gt;&lt;STRONG&gt;Warning&lt;/STRONG&gt;: Invalid argument supplied for foreach() in &lt;STRONG&gt;C:\xampp\htdocs\athorize_detail.php&lt;/STRONG&gt; on line &lt;STRONG&gt;16&lt;/STRONG&gt;&lt;BR /&gt;AAAAAAAA&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;$transactionId = "&lt;FONT face="Calibri"&gt;AAAAAAAA&lt;/FONT&gt;﻿";&lt;BR /&gt;and this transaction id I found it 2011-09-19 11:36:08 it’s a real transaction &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;Please help why I cannot generate XML , thank you&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2011 19:23:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17320#M9691</guid>
      <dc:creator>momouhsu</dc:creator>
      <dc:date>2011-09-26T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Please help . cannot connect to transaction api</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17328#M9695</link>
      <description>&lt;P&gt;Well, $batches is obviously not having anything assigned to it, so my guess would be that there's either no response (unlikely, I hope) or you're accessing the batches incorrectly. I can't give a more specific answer because I haven't worked with batches yet, but if I were debugging this I'd do print_r($response) and make sure that (a) it has data in it and (b) has the method or attribute that you're trying to put into $batches. That will at least narrow the possibilities.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2011 21:16:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17328#M9695</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-26T21:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Please help . cannot connect to transaction api</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17394#M9727</link>
      <description>&lt;P&gt;I got this message .. I used same ID and key to accept payment with no error ... I don't knwo why here show User authentication failed due to invalid authentication values.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AuthorizeNetTD_Response Object ( [xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Error [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; E00007 [text] =&amp;gt; User authentication failed due to invalid authentication values. ) ) ) [response] =&amp;gt; ï»¿ErrorE00007User authentication failed due to invalid authentication values. [xpath_xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Error [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; E00007 [text] =&amp;gt; User authentication failed due to invalid authentication values. ) ) ) ) ﻿&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 22:21:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17394#M9727</guid>
      <dc:creator>momouhsu</dc:creator>
      <dc:date>2011-09-27T22:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Please help . cannot connect to transaction api</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17424#M9742</link>
      <description>&lt;P&gt;Have you printed out your login values to make sure they're actually making it where they're supposed to go? Also, are you in the correct sandbox or non-sandbox mode for that login?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 06:59:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Please-help-cannot-connect-to-transaction-api/m-p/17424#M9742</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-28T06:59:39Z</dc:date>
    </item>
  </channel>
</rss>

