cancel
Showing results for 
Search instead for 
Did you mean: 

(97) This transaction cannot be accepted. SIM API.

I have a sandbox account, and am posting a form to the SIM page with the URL: https://test.authorize.net/gateway/transact.dll

 

 

This is my code. 

 

    
  <FORM method="POST" action="https://test.authorize.net/gateway/transact.dll">
    <INPUT TYPE=HIDDEN NAME="x_version" VALUE="3.1">
    <INPUT type="hidden" name="x_login" value="api_id">
    <INPUT type="hidden" name="x_show_form" value="PAYMENT_FORM">
    <INPUT type="hidden" name="x_relay_response" value="TRUE">
    <INPUT type="hidden" name="x_method" value="CC">
    <INPUT type="hidden" name="x_amount" value="59.00">

    
    <cfset invoiceNumber = 100>
    <cfset todayCost = "59.00">
    <cfset utc=DateDiff("s", "January 1 1970 00:00", DateConvert('local2UTC', Now()))+6378>
    
    <cfset thisHash = HMac("2J6GJkx6L^#invoiceNumber#^#utc#^#todayCost#^", "transactionkey")>

    <cfoutput>
    <input type=hidden name="x_fp_hash" value="<cfoutput>#trim(thisHash)#</cfoutput>">
    <input type=hidden name="x_fp_sequence" value="100">
    <input type=hidden name="x_fp_timestamp" value="<Cfoutput>#utc#</cfoutput>">
    </cfoutput>
    <input type="submit" value="submit">
  </form>

I ADDED THE TIME OFFSET TO MATCH WHAT IS SHOW HERE:  http://developer.authorize.net/api/reference/responseCode97.html My server is Central Time.

 

When I use this tool to check the time I am submitting, it always passes. Yet, I still receive the message: 

  The following errors have occurred.

(97) This transaction cannot be accepted.

 

 

 

I cannot change my server time. It does match the online tool. I have spent countless hours searching the forums for answers. Can someone please help me determine the source of this error? 

 

 

 

For the record, I also tried this in PHP. Here was my code: 

<FORM action="https://test.authorize.net/gateway/transact.dll" method="POST">
<?php
$api_login_id = 'foo';
$x_tran_key = 'bar';
$x_Description = 'Test';
$amount = '10.22';
$utc_str = gmdate("M d Y H:i:s", time());
$fp_timestamp = time()+6378;

$fp_sequence = rand(1, 1000);

if (function_exists('hash_hmac')) {
    $fp_hash = hash_hmac("md5", $api_login_id . "^" . $fp_sequence . "^" . $fp_timestamp . "^" . $amount . "^", $x_tran_key . "^"); 
}else{
	$fp_hash = bin2hex(mhash(MHASH_MD5, $api_login_id . "^" . $fp_sequence . "^" . $fp_timestamp . "^" . $amount . "^", $x_tran_key . "^"));
}
?>
<br/>
<input type="text" name="x_description" value="<?=$x_Description;?>"><br/>
<input type="text" name="x_login" value="<?=$api_login_id;?>"><br/>
<input type="text" name="x_amount" value="<?=$amount;?>"><br/>
<INPUT type="text" name="x_show_form" value="PAYMENT_FORM"><br/>
<INPUT type="text" name="x_test_request" value="TRUE"><br/>
<INPUT type="text" name="x_relay_response" value="FALSE"><br/>
<INPUT type="text" name="x_version" value="3.1"><br/>
<INPUT type="text" name="x_delim_char" value=","><br/>
<INPUT type="text" name="x_delim_data" value="TRUE"><br/>
<INPUT type="text" name="x_relay_url" value="http://mukeshsan.in"><br/>
<INPUT type="text" name="x_fp_hash" value="<?=$fp_hash?>"><br/>
<INPUT type="text" name="x_fp_sequence" value="<?=$fp_sequence;?>"><br/>
<INPUT type="text" name="x_fp_timestamp" value="<?=$fp_timestamp;?>"><br/>
<INPUT type="submit" value="Accept Order">
</FORM>
luxdvie
Member
1 REPLY 1

Hello @luxdvie

 

We recently found and fixed an issue with our Response Code 97 tool, I would suggest retrying to see if it provide better information for you.

 

Richard

RichardH
Administrator Administrator
Administrator