cancel
Showing results for 
Search instead for 
Did you mean: 

code 99 - online tool shows the code matches, so what gives?

See the form that is being submitted below. I am able to verify that the x_fp_hash is correct. The amount is using two decimal spaces as stated, with no "$$".  I'm trying to pre-populate the address fields to save the user the trouble, but as of now, it's a blank form that the user has to fill out. I filled out the form, click 'submit' but no dice. For a while, I was getting an error because the timestamp was off by 6 hours, but I fixed that already. This is on a server that uses ASP and vbscript only, so no PHP or .NET samples please.

 

Yet, though I am able to verify that the predicted code (using the 99 tool) and the generated code match, I still get the error:

 

The following errors have occurred.

(99) This transaction cannot be accepted.

 

 

<form id="frmLinkPayment" method="post" action=
"https://secure.authorize.net/gateway/transact.dll" onsubmit=
"javascript&colon; return validatePayments(this);" autocomplete="off">
<input type="hidden" id="x_login" name="x_login" value="my-api-user-id" />
<input type="hidden" id="x_fp_hash" name="x_fp_hash" value="whatever the hash should be" />
<input type="hidden" id="x_method" name="x_method" value="cc" />
<input type="hidden" id="x_version" name="x_version" value="3.1" />
<input type="hidden" id="x_test_request" name="x_test_request" value="true" />
<input type="hidden" id="x_amount" name="x_amount" value="75.00" />
<input type="hidden" id="x_fp_timestamp" name="x_fp_timestamp" value="1323375958" />
<input type="hidden" id="x_fp_sequence" name="x_fp_sequence" value="six-digit-number" />
<input type="hidden" id="x_show_form" name="x_show_form" value="payment_form" />
<input type="hidden" id="USER1" name="USER1" value="" /><input type="hidden" id="USER2" name="USER2" value="" />
<input type="hidden" id="USER3" name="USER3" value="same six-digit-number" />
<input type="hidden" id="USER4" name="USER4" value="" />

<table class="TableNormal" width="100%" border="0" cellspacing="2" cellpadding="2">
<tr id="IDClassName">
<td class="" valign="middle">Class Name:</td>
<td class="" valign="middle"></td>
</tr>

<tr id="IDAmount">
<td class="" valign="middle">Amount:</td>
<td class="" valign="middle">
<input type="text" id="AMOUNT" name="AMOUNT" maxlength="9" size="9" value="75.00" readonly="readonly" />
<input type="hidden" id="x_amount" name="x_amount" value="$75.00" />
( <i>Fee:</i> $75.00&nbsp;&nbsp;<i>Paid:</i> $0.00&nbsp;&nbsp;<i>Due:</i> $75.00 )
</td>
</tr>

<tr id="IDName">
<td class="" valign="middle">Name On Card:</td>
<td class="" valign="middle">
First:<input type="text" id="x_first_name" name="x_first_name" maxlength="75" size="30" /><br />
Last:<input type="text" id="x_last_name" name="x_last_name" maxlength="75" size="30" /></td>
</tr>

<tr id="IDAddress1">
<td class="" valign="middle">Billing Address:</td>
<td class="" valign="middle">
<textarea id="x_address" name="x_address" rows="3" cols="20">enter your address here</textarea>
</td>
</tr>

<tr id="IDCity">
<td class="" valign="middle">City:</td>
<td class="" valign="middle"><input type="text" id="x_city" name="x_city" maxlength="40" size="20" />
</td>
</tr>

<tr id="IDState">
<td class="" valign="middle">State:</td>
<td class="" valign="middle"><select size="1" name="x_state" id="x_state">
<option value="AZ">
AZ -- Arizona (USA)
</option>
</select></td>
</tr>

<tr id="IDZipCode">
<td class="" valign="middle">Zip Code:</td>
<td class="" valign="middle"><input type="text" id="x_zip" name="x_zip" maxlength="10" size="10" /></td>
</tr>

<tr>
<td class="" valign="middle">&nbsp;</td>
<td class="" valign="middle"><input type="submit" value="Make Payment" name="Make Payment" /></td>
</tr>
</table>
</form>

spiderx
Member
1 ACCEPTED SOLUTION

Accepted Solutions
<input type="hidden" id="x_amount" name="x_amount" value="75.00" />
...
<input type="hidden" id="x_amount" name="x_amount" value="$75.00" /> 

 Not sure if it make a different but you have two x_amount, one with $ sign and one without.

View solution in original post

RaynorC1emen7
Expert
2 REPLIES 2
<input type="hidden" id="x_amount" name="x_amount" value="75.00" />
...
<input type="hidden" id="x_amount" name="x_amount" value="$75.00" /> 

 Not sure if it make a different but you have two x_amount, one with $ sign and one without.

RaynorC1emen7
Expert

Thanks, that was it. I had just been staring at the code so long I didn't see it.