It still breaks everything after the batch info. Am I calling the method correctly?
require_once "anet_php_sdk/AuthorizeNet.php";
define("AUTHORIZENET_API_LOGIN_ID", "669KMkmY9K6U");
define("AUTHORIZENET_TRANSACTION_KEY", "4G6V83hNY8hYtu4a");
$includeStatistics = true;
// Get Settled Batch List
$request = new AuthorizeNetTD;
$response = $request->getSettledBatchList();
echo count($response->xml->batchList->batch) . " batches\n";
foreach ($response->xml->batchList->batch as $batch) {
echo "Batch ID: " . $batch->batchId . "\n";
$request2 = new AuthorizeNetTD;
$response2 = $request2->getTransactionListRequest($batch->batchId);
echo count($response2->xml->transactions->transaction) . " transactions\n";
foreach ($response2->xml->transactions->transaction as $transaction) {
echo "Transaction ID: " . $transaction->transId . "\n";
}
}
print_r("<br />" . $response2);