<?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: Creating a daily transaction datafile using PHP (or commandline) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45459#M23013</link>
    <description>&lt;P&gt;If I am approching this wrong, please let me know. &amp;nbsp;We'd be glad to use the easiest method to produce a daily file of transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code we're using:&lt;/P&gt;&lt;P&gt;error_reporting(E_ALL);&lt;/P&gt;&lt;P&gt;require_once "/anet_php_sdk/AuthorizeNet.php";&lt;BR /&gt;define("AUTHORIZENET_API_LOGIN_ID", "669KMkmY9K6U");&lt;BR /&gt;define("AUTHORIZENET_TRANSACTION_KEY", "xxxxxxxxxxxx");&lt;BR /&gt;define("AUTHORIZENET_SANDBOX", true);&lt;/P&gt;&lt;P&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$includeStatistics = false;&lt;BR /&gt;$firstSettlementDate = "2014-07-01T08:15:30";&lt;BR /&gt;$lastSettlementDate = "2014-07-15T08:15:30";&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;getSettledBatchList($includeStatistics,$firstSettlementDate,$lastSettlementDate);&lt;BR /&gt;print_r($response);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND THE RESULTS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AuthorizeNetTD_Response Object ( [xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Ok [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; I00001 [text] =&amp;gt; Successful. ) ) [batchList] =&amp;gt; SimpleXMLElement Object ( [batch] =&amp;gt; SimpleXMLElement Object ( [batchId] =&amp;gt; 3573899 [settlementTimeUTC] =&amp;gt; 2014-07-14T19:25:38Z [settlementTimeLocal] =&amp;gt; 2014-07-14T14:25:38 [settlementState] =&amp;gt; settledSuccessfully [paymentMethod] =&amp;gt; creditCard [marketType] =&amp;gt; eCommerce [product] =&amp;gt; Card Not Present ) ) ) [response] =&amp;gt; ï»¿&lt;/SPAN&gt;OkI00001Successful.35738992014-07-14T19:25:38Z2014-07-14T14:25:38settledSuccessfullycreditCardeCommerceCard Not Present&lt;SPAN&gt;&amp;nbsp;[xpath_xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Ok [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; I00001 [text] =&amp;gt; Successful. ) ) [batchList] =&amp;gt; SimpleXMLElement Object ( [batch] =&amp;gt; SimpleXMLElement Object ( [batchId] =&amp;gt; 3573899 [settlementTimeUTC] =&amp;gt; 2014-07-14T19:25:38Z [settlementTimeLocal] =&amp;gt; 2014-07-14T14:25:38 [settlementState] =&amp;gt; settledSuccessfully [paymentMethod] =&amp;gt; creditCard [marketType] =&amp;gt; eCommerce [product] =&amp;gt; Card Not Present ) ) ) )&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jul 2014 16:15:33 GMT</pubDate>
    <dc:creator>foundation406</dc:creator>
    <dc:date>2014-07-18T16:15:33Z</dc:date>
    <item>
      <title>Creating a daily transaction datafile using PHP (or commandline)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45457#M23012</link>
      <description>&lt;P&gt;Could someone assist us&amp;nbsp;in creating a PHP page that accepts our Login ID and Transaction Key, then produces a csv datafile for import into our database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;We can sucessfully pull the results by passing a single transaction #, but would prefer to use a data range (i.e. yesterday), and results come across in a jumble of XML (which I'm not terribly familiar with).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We can sucessfully pull the results by providing&amp;nbsp;a data range, and results come across in a jumble of XML (which I'm not terribly familiar with).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do we&amp;nbsp;capture these results into a data file? &amp;nbsp;Also, we'd like to pull some custom fields.&amp;nbsp;Do you happen to have that code handy?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 16:13:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45457#M23012</guid>
      <dc:creator>foundation406</dc:creator>
      <dc:date>2014-07-18T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a daily transaction datafile using PHP (or commandline)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45459#M23013</link>
      <description>&lt;P&gt;If I am approching this wrong, please let me know. &amp;nbsp;We'd be glad to use the easiest method to produce a daily file of transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code we're using:&lt;/P&gt;&lt;P&gt;error_reporting(E_ALL);&lt;/P&gt;&lt;P&gt;require_once "/anet_php_sdk/AuthorizeNet.php";&lt;BR /&gt;define("AUTHORIZENET_API_LOGIN_ID", "669KMkmY9K6U");&lt;BR /&gt;define("AUTHORIZENET_TRANSACTION_KEY", "xxxxxxxxxxxx");&lt;BR /&gt;define("AUTHORIZENET_SANDBOX", true);&lt;/P&gt;&lt;P&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$includeStatistics = false;&lt;BR /&gt;$firstSettlementDate = "2014-07-01T08:15:30";&lt;BR /&gt;$lastSettlementDate = "2014-07-15T08:15:30";&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;getSettledBatchList($includeStatistics,$firstSettlementDate,$lastSettlementDate);&lt;BR /&gt;print_r($response);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND THE RESULTS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AuthorizeNetTD_Response Object ( [xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Ok [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; I00001 [text] =&amp;gt; Successful. ) ) [batchList] =&amp;gt; SimpleXMLElement Object ( [batch] =&amp;gt; SimpleXMLElement Object ( [batchId] =&amp;gt; 3573899 [settlementTimeUTC] =&amp;gt; 2014-07-14T19:25:38Z [settlementTimeLocal] =&amp;gt; 2014-07-14T14:25:38 [settlementState] =&amp;gt; settledSuccessfully [paymentMethod] =&amp;gt; creditCard [marketType] =&amp;gt; eCommerce [product] =&amp;gt; Card Not Present ) ) ) [response] =&amp;gt; ï»¿&lt;/SPAN&gt;OkI00001Successful.35738992014-07-14T19:25:38Z2014-07-14T14:25:38settledSuccessfullycreditCardeCommerceCard Not Present&lt;SPAN&gt;&amp;nbsp;[xpath_xml] =&amp;gt; SimpleXMLElement Object ( [messages] =&amp;gt; SimpleXMLElement Object ( [resultCode] =&amp;gt; Ok [message] =&amp;gt; SimpleXMLElement Object ( [code] =&amp;gt; I00001 [text] =&amp;gt; Successful. ) ) [batchList] =&amp;gt; SimpleXMLElement Object ( [batch] =&amp;gt; SimpleXMLElement Object ( [batchId] =&amp;gt; 3573899 [settlementTimeUTC] =&amp;gt; 2014-07-14T19:25:38Z [settlementTimeLocal] =&amp;gt; 2014-07-14T14:25:38 [settlementState] =&amp;gt; settledSuccessfully [paymentMethod] =&amp;gt; creditCard [marketType] =&amp;gt; eCommerce [product] =&amp;gt; Card Not Present ) ) ) )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 16:15:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45459#M23013</guid>
      <dc:creator>foundation406</dc:creator>
      <dc:date>2014-07-18T16:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a daily transaction datafile using PHP (or commandline)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45461#M23014</link>
      <description>&lt;P&gt;Well.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now realize we are simply pulling a list of batches by date, but don't know how to pull the actual transactions in the batch and capture them into a data file.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 16:18:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45461#M23014</guid>
      <dc:creator>foundation406</dc:creator>
      <dc:date>2014-07-18T16:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a daily transaction datafile using PHP (or commandline)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45485#M23025</link>
      <description>&lt;P&gt;Well now I figured out how to pull transactions by day, but I don't know what to do with all the XML!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;require_once "/anet_php_sdk/AuthorizeNet.php";&lt;BR /&gt;define("AUTHORIZENET_API_LOGIN_ID", "669KMkmY9K6U");&lt;BR /&gt;define("AUTHORIZENET_TRANSACTION_KEY", "xxxxx");&lt;BR /&gt;define("AUTHORIZENET_SANDBOX", true);&lt;/P&gt;&lt;P&gt;$request = new AuthorizeNetTD;&lt;BR /&gt;$response = $request-&amp;gt;getTransactionsForDay(7,14,2014);&lt;BR /&gt;print_r($response);&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 18:10:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-a-daily-transaction-datafile-using-PHP-or-commandline/m-p/45485#M23025</guid>
      <dc:creator>foundation406</dc:creator>
      <dc:date>2014-07-18T18:10:23Z</dc:date>
    </item>
  </channel>
</rss>

