I'm trying to create a SIM integration but have encountered a problem. I've downloaded the SDK for php and the Documentation for it. In the sample code there is a an include file called "simlib.asp". My question is: what files from the SDK do I need to include?
I've made a few attempts but continue to get an error: (92) The gateway no longer supports the requested method of integration.
I know That I am missing something really basic here but could some one tell me where to look for the answer? My code to post is below:
<form action ="https://secure.authorize.net/gateway/transact.dll" Method = "POST">
<INPUT TYPE=HIDDEN NAME="x_version" VALUE="3.1">
<INPUT TYPE=HIDDEN NAME="x_login" VALUE="7rXxJSy6U3X">
<INPUT TYPE=HIDDEN NAME="x_show_form" VALUE="PAYMENT_FORM">
<input type=hidden name="x_fp_sequence" value = "768">
<INPUT TYPE=HIDDEN NAME="x_method" VALUE="CC">
<INPUT TYPE=HIDDEN NAME="x_amount" VALUE="9.95">
<INPUT TYPE=HIDDEN NAME="x_type" VALUE="AUTH_ONLY">
<input type='submit' value='Test SIM'>
Solved! Go to Solution.
A few things.
1) I see that you're submitting to the production URL (https://secure.authorize.net/gateway/transact.dll) You should probably be testing on a developer account. Sign up for one here:
Change the form URL to https://test.authorize.net/gateway/transact.dll
2) You should test with live mode (on a developer account). Test mode doesn't simulate everything properly. Add this just to make sure you're in live mode:
<input type="hidden" name="x_test_request" value="false" />
3) You're missing the fingerprint hash and timestamp. Did you view source on your page to make sure the code generates them properly?
<!--#INCLUDE FILE=”simlib.asp”--> ... <% ret = InsertFP (APIloginid, sequence, amount, txnkey) %>
I seem to remember some stuff about ASP not being officially supported any more, and people using the SDK with ASP Classic, but don't know how that factors in because I use PHP. You might try looking at the PHP library and comparing the FP function there with the one in the ASP library.
I am using PHP. I downloaded the SDK but can't seem to make heads or tails of it really. I've put the entire SDK on the server and included the main file in my test page:
How do I go about creating a fingerprint? I tried this:
$Test= new AuthorizeNetSIM;
$Time = time();
$fingerPrint = $Test-> getFingerprint("3uv4M5QcP", "3Z6J3e2zuXS9h7ar", 5.50, 001, $Time);
Failed because this wasn't a member function of AuthorizeNetSim
The SDK pdf wasn't exectly clear on that one.