Reply
Highlighted
Member
Posts: 1
Registered: ‎10-19-2011

Getting error 13 - Testing SIM php integration

This is my test code. I am get an error (13). Please somebody help!!

<?phprequire_once ('anet_php_sdk/AuthorizeNet.php');
$api_login_id = "4q58Cf29pExx";
$transaction_key = "6w38Y93J5q2SZTvk";$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>

 

 

Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: Getting error 13 - Testing SIM php integration

Error code 13 is invalid login, so assuming your login is correct and not missing any characters, my guess is you're using a sandbox login in production mode, or a production login in sandbox mode. Since your form has the test URL, are you using a production login by any chance? If so, I hope you edited it before posting.

 

Might also be helpful if you could post your code with line breaks. If the form isn't working for you, make a .txt, post it to your hosting, and link that.