cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie - Need help with integration

I am new to authorize.net and need answers quick because of deadline purposes. i am helping a clinic implement a billing system with authrorize.net and thought i could use the SIM format. I don't know what is going on because i get the error 13... html code is below

 

<html>
<body>
<td>

<!--Log-in ID-->
<login= "0000000000"
transactionKey= "0000000000000000"
amount= "amount"
description= "description"
label= "Submit Payment"
url= "http://secure.authorize.net/gateway/transact.dll">

<font color= "black" size="4" font face= "Verdana" width= "95%"> <div

align="center"> We now offer on-line payments
<br><a href="https://secure.authorize.net/gateway/transact.dll" target=

"_blank"><u><font color="red"> Please click here for secure

payment</font></u></a></br>

<!--includefile-->
<includefile="simlib.asp">
<Form method = post action = "https://secure.authorize.net/gateway/transact.dll">
<%ret = insertFP(APIloginin,sequence, amount, txnkey)%>

<INPUT TYPE= HIDDEN NAME = "x_login" Value = "0000000000">
<INPUT TYPE= HIDDEN NAME = "x_txnkey" VALUE="0000000000000000">
<INPUT TYPE= HIDDEN NAME = "x_type" VALUE= "AUTH_CAPTURE">
<INPUT TYPE= HIDDEN NAME = "x_amount" VALUE = "&amount&">
<INPUT TYPE= HIDDEN NAME = "x_fp_hash" VALUE = "&fingerprint&">
<INPUT TYPE= HIDDEN NAME = "x_fp_sequence" VALUE = "&sequence&">
<INPUT TYPE= HIDDEN NAME = "x_fp_timestamp" VALUE = "&timestamp&">
<INPUT TYPE= HIDDEN NAME = "x_show_form" VALUE = "PAYMENT_FORM">


</td>
</div>
</font>
</form>
</body>
</html>

 

 

It isn't entirely finished, but any help would be great to get this thing running asap. HELP!

latadared
Member
14 REPLIES 14

I've gone through the manual and also read through what other people had posted who had the same issues. I've played with both the URL's and also i've entered both my test and active user account, still no go. The manual has some great advice and for some reason i just can't get this to work. I thought this to be a 15 minute integration but for some reason i am running into a wall. Help

latadared
Member

Is that from the sample asp code? Why it is so different from it?

1)You have a link to the secure.authorize.net without any param(That probably why you are getting error 13)

2)The form post have NO submit button, and you don't pass the transactionKey to secure.authorize.net

The code you've pasted looks a bit of a mess. Might be helpful to post in code tags next time (fourth button from left in Rich Text mode). I'm not familiar with ASP, but looking at the sample code in the SIM PDF guide, I notice that the example there does not have these fields:

 

<INPUT TYPE= HIDDEN NAME = "x_txnkey" VALUE="0000000000000000">
<INPUT TYPE= HIDDEN NAME = "x_fp_hash" VALUE = "&fingerprint&"> <INPUT TYPE= HIDDEN NAME = "x_fp_sequence" VALUE = "&sequence&"> <INPUT TYPE= HIDDEN NAME = "x_fp_timestamp" VALUE = "&timestamp&">

You sure the InsertFP function is not already putting those in? That may or may not have an effect. You might want to view source on your page with your browser and see if there's any duplicate fields. Also, I notice that your function call has APIloginin, which I doubt is what you intended.

TJPride
Expert

Where do i find the sample asp code?

Sample Code


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post

http://www.authorize.net/support/SIM_guide.pdf

Page 15, or just search for the word ASP and see what comes up.

Okay. Thanks guys for helping with that!!  Now i went and made the changes accordingly, but I am getting error 97. I tried to change the fingerprint and timestamp to coordinate to GMT, however my efforts have failed. we are behind GMT by 7 hours or UNC-7. I don't know how to fix this. Can i get some help asap. Also i did remove :

 

<INPUT type= hidden name= "x_fp_sequence" value=  "sequence"/>
<INPUT type= hidden name= "x_fp_timeStamp" value="timeStamp"/>
<INPUT type= hidden name= "x_fp_hash" value=  "fingerprint"/>

 

But got an error 92. So i really wanted to get this working by this week, but it's taking alot longer.

Are you using the simlib.asp 

Dim timeStamp = simTimeStamp()

Are how are you generating the timestamp?

 

 

yes i am. I've also tried various tips that were made over the internet, yet i still getting the error code. Here the full code that i am using:

 

<HTML lang='en'>

<td>
<width"95%"><div align = "center"><font color= "blue" size=(4) face="Arial"> We now

offer on-line billing.</font></a>
</td>

 
<!--#INCLUDE FILE="simlib.asp"-->
<%
loginID= "0000000000"
transactionKey= "0000000000000000"
amount= "1999.99"
description = "Sample Transaction"
label= "Sumbit Payment"
testMode= "false"
url= "http://secure.authorize.net/gateway/transact.dll"

 
Response.Write If Request.Form ("amount") <> ""Then amount = Request.Form ("amount")
End If
 
If Request.Form ("description") <> ""Then description = Request.Form ("description")
End If
 
If Request.QueryString ("amount") <> ""Then amount = Request.QueryString ("amount")
End If
 
If Request.QueryString ("description") <> ""Then description = Request.QueryString

("description")
End If
 
Dim invoice = Year (Date) & Month (Date)& Day (Date) & Hour (Now) & Minute (Now) &

Second (Now)
 
Dim Sequence = Int(1000*Rnd)

Dim timeStamp = simTimeStamp()

Dim fingerprint  = HMAC-Md5(transactionKey, loginID & "^" & sequence & "^" & timeStamp &

"^" & amount & "^")


 
Response.Write ("Amount: "&amount&"  <br/>")
Response.Write ("Description: "&description&" <br/>")

 
<td>
<width"95%"><div align = "center"><font color= "blue" size=(4) face="Arial"> We now

offer on-line billing.</font></a>
</td>
 
%>
 
<FORM method = post action = "https://secure.authorize.net/gateway/transact.dll">
<%ret=InsertFP(loginID, sequence, amount, txnkey)%>
 
<INPUT type=hidden name="x_login" value= "0000000000" />
<INPUT TYPE= HIDDEN NAME = "x_txnkey" VALUE="0000000000000000"/>
<INPUT type= hidden name="x_amount" value= "amount" />
<INPUT type= hidden name= "x_description" value= "description"/>
<INPUT type= hidden name= "x_invoice_num" value=  "invoice"/>
<INPUT type= hidden name= "x_fp_sequence" value=  "sequence"/>
<INPUT type= hidden name= "x_fp_timeStamp" value="timeStamp"/>
<INPUT type= hidden name= "x_fp_hash" value=  "fingerprint"/>
<INPUT type= hidden name= "x_test_request" value= "testMode"/>
<INPUT type= hidden name= "x_show_form" value= "PAYMENT_FORM"/>
<INPUT type= submit value="Please click here for secure payment."/>

</Form>


</div>
</HTML>

 

 

I don't know what i am doing wrong...ugh..