cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Getting error 13 - Testing SIM php integration

I always get error 13 no matter use testing account and post to https://test.authorize.net/gateway/transact.dll or use a live production account and posting to https://secure.authorize.net/gateway/transact.dll.

 

Is there someone can help me with this issue?

 

My code:

 

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
require_once 'anet_php_sdk/AuthorizeNet.php';
$api_login_id = '9Y9Agssxxxxx';
$transaction_key = '7u7G2R4K3azxxxxx';
$amount = "5.99";
$fp_timestamp = time();
$fp_sequence = "123" . time(); // Enter an invoice or other unique number.
$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id,
  $transaction_key, $amount, $fp_sequence, $fp_timestamp)
?>

<form method='post' action="https://test.authorize.net/gateway/transact.dll.">
<input type='hidden' name="x_login" value="<?php echo $api_login_id;?>" />
<input type='hidden' name="x_fp_hash" value="<?php echo $fingerprint;?>" />
<input type='hidden' name="x_amount" value="<?php echo $amount;?>" />
<input type='hidden' name="x_fp_timestamp" value="<?php echo $fp_timestamp;?>" />
<input type='hidden' name="x_fp_sequence" value="<?php echo $fp_sequence;?>" />
<input type='hidden' name="x_version" value="3.1">
<input type='hidden' name="x_show_form" value="payment_form">
<input type='hidden' name="x_test_request" value="true" />
<input type='hidden' name="x_method" value="cc">
<input type='submit' value="Click here for the secure payment form">
</form>
</body>
</html>

 

When change post URL to: https://developer.authorize.net/tools/paramdump/index.php.  I get following information:

Field Name Field Value

x_test_requesttrue
x_amount<?php echo $amount?>
x_login<?php echo $api_login_id?>
x_fp_sequence<?php echo $fp_sequence?>
x_version3.1
x_show_formpayment_form
x_methodcc
x_fp_timestamp<?php echo $fp_timestamp?>
x_fp_hash

<?php echo $fingerprint?>

maagil01
Member
3 REPLIES 3

not sure if it make any different but it missing a semicolon at the getFingerprint line.

RaynorC1emen7
Expert

Add the semicolon, but still not work.

Are you sure you are running php? because it look like it is not. Can you see what the browser page source look like?