cancel
Showing results for 
Search instead for 
Did you mean: 

Card Present AIM : No error 13 when using test credential but real credentials return 13. Confused?

I am using the Card Present AIM :  I have no error 13 when using test credentials but when I replace the real

with real credentials and test. I get a 13. Confused?

 

I used the PHP script from the examples. 

 

Any help appreciated.

 

Thanks!

 

 

require_once 'anet_php_sdk/AuthorizeNet.php'; // Make sure this path is correct.
$totalAmount = $_POST["transAmount"] + $_POST["transTip"];
$transaction = new AuthorizeNetCP('478twReXNcB', '6x4sa3CszyT27B9c');
$transaction->amount = $totalAmount;
$transaction->setTrack2Data($_POST["cardNumber"]);
$transaction->device_type = '4';
$response = $transaction->authorizeAndCapture();
if ($response->approved) {
  echo "<h1>Success! The credit card has been charged!</h1>";
  echo "Transaction ID: " . $response->transaction_id;
} else {
  echo $response->error_message;
}

 

 

cowboybob
Member
1 REPLY 1