<?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: PHP batch statistics response accountType, chargeAmount, chargeCount in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45210#M22895</link>
    <description>&lt;P&gt;That sound right.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jul 2014 20:19:07 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2014-07-10T20:19:07Z</dc:date>
    <item>
      <title>PHP batch statistics response accountType, chargeAmount, chargeCount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45186#M22883</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Trying to show a summary of statistics on my server for our accounting department. Reading through the forums and guides, I am a bit stuck. In the XML documentation, the responses seem to indicate that I should be able to look through the statistics for each batch. I have tried several methods to try and see this. Can someone kind of suggest a tip to help me along? Below is my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;error_reporting(E_ALL);&lt;BR /&gt;&lt;BR /&gt;require_once "/anet_php_sdk/AuthorizeNet.php";&lt;BR /&gt;define("AUTHORIZENET_API_LOGIN_ID", "xxxxxxxxx");&lt;BR /&gt;define("AUTHORIZENET_TRANSACTION_KEY", "xxxxxxxxxxx");&lt;BR /&gt;define("AUTHORIZENET_SANDBOX", false);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Get Settled Batch List&lt;BR /&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$includeStatistics = true;&lt;BR /&gt;$firstSettlementDate = "2014-07-01T08:15:30";&lt;BR /&gt;$lastSettlementDate = "2014-07-09T08:15:30";&lt;BR /&gt;&lt;BR /&gt;$response = $request-&amp;gt;getSettledBatchList($includeStatistics,$firstSettlementDate,$lastSettlementDate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;echo count($response-&amp;gt;xml-&amp;gt;batchList-&amp;gt;batch) . " batches&amp;lt;br&amp;gt;";&lt;BR /&gt;&lt;BR /&gt;foreach ($response-&amp;gt;xml-&amp;gt;batchList-&amp;gt;batch as $batch) {&lt;BR /&gt;echo "Batch ID: " . $batch-&amp;gt;batchId . "&amp;lt;br&amp;gt;";&lt;BR /&gt;&lt;STRONG&gt;// I would like to put in the Transaction details here and tried : $response-&amp;gt;xml-&amp;gt;statistics=&amp;gt;statistic-&amp;gt;accountType&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// Tried looping through the statistics in the response, and also in the above batch&amp;nbsp;list (which works fine)&amp;nbsp;loop, and also have tried just displaying in on the page - something like:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;foreach ($response-&amp;gt;xml-&amp;gt;statistics-&amp;gt;statistic as $stat) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;echo "Account Type: " . $stat-&amp;gt;accountType . "&amp;lt;br&amp;gt;";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;?&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 18:56:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45186#M22883</guid>
      <dc:creator>jayrover</dc:creator>
      <dc:date>2014-07-10T18:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: PHP batch statistics response accountType, chargeAmount, chargeCount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45204#M22892</link>
      <description>&lt;P&gt;&lt;A target="_blank" href="http://developer.authorize.net/api/reference/"&gt;http://developer.authorize.net/api/reference/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;statistics&lt;/STRONG&gt; is a child of &lt;STRONG&gt;batch&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 19:46:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45204#M22892</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-07-10T19:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: PHP batch statistics response accountType, chargeAmount, chargeCount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45208#M22894</link>
      <description>&lt;P&gt;Thank you. That helped a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, then, I should be able to&amp;nbsp;then loop through each batch and see a summary of each accountType, chargeAmount, and chargeCount ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the reply.:smileyhappy:&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:02:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45208#M22894</guid>
      <dc:creator>jayrover</dc:creator>
      <dc:date>2014-07-10T20:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: PHP batch statistics response accountType, chargeAmount, chargeCount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45210#M22895</link>
      <description>&lt;P&gt;That sound right.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:19:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-batch-statistics-response-accountType-chargeAmount/m-p/45210#M22895</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-07-10T20:19:07Z</dc:date>
    </item>
  </channel>
</rss>

