I am attempting to pull transaction and batchlist data from PHP. I have a live account and valid API Login and Key. And I have actvated the Transaction Details API.
This accout has been LIVE for years and has many transactions and batches. However, I get 0Batches and no details using a known valid transaction ID.
echo "<br>****** Authorize.Net ******<br>";
require_once "../../anet_php_sdk/AuthorizeNet.php";
define("AUTHORIZENET_API_LOGIN_ID", "***********");
define("AUTHORIZENET_TRANSACTION_KEY", "****************");
// 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";
}
// Get Transaction Details
$transactionId = "6356645336";
$response = $request->getTransactionDetails($transactionId);
echo $response->xml->transaction->transactionStatus;Any thoughts on why? I activated Transaction Details API this morning. Does it take time to take effect?
07-24-2014 09:14 AM
I read through the https://wiki.apache.org/httpd/ReInflating and now my head hurts.
If the sample SIM Implementation using sandbox credentials is running fine when on my server, would the gzip compression be the issue?
07-25-2014 09:25 AM
if you server is gzip compression enabled
do the "Remove the request for compression"
https://wiki.apache.org/httpd/ReInflating
is running fine in the sandbox because the sandbox not returning gzip. If you read the spec on Content-Encoding, the client can request gzip, then the server can response with gzip or not too.
07-25-2014 12:28 PM