cancel
Showing results for 
Search instead for 
Did you mean: 

SIM error

Hi,

 

I'm testing SIM, trying to test it anyway.  When I run sample code (below) I get this error message:

 

(13) The merchant login ID or password is invalid or the account is inactive.

 

And here is the code from the sample page. The account is active. And I've checked and double-checked the API keys. So I don't know why it says invalid/inactive. I don't think I have to do anything to initiate SIM in Authorize (or do I?) - I didn't see a place where it has to be turned on.  Any ideas anyone?:

 

PHP code -

 

<?php
require_once 'anet_php_sdk/AuthorizeNet.php'; // Include the SDK you downloaded in Step 2
$api_login_id = '(not shown here)';
$transaction_key = '(not shown here)';
$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>

KB_developer
Contributor
3 REPLIES 3

Is this a test account or production account?

and make sure there isn't any space in the value for name="x_login"

RaynorC1emen7
Expert

Thanks for the reply.

 

There are no spaces.

 

is it test or live?  It's not sandbox, I guess then it's live.  Although here are some variations I have tried:

 

with

<form method='post' action="https://test.authorize.net/gateway/transact.dll"> and

<input type='hidden' name="x_test_request" value="true" />

..  I get the error 9(13) The merchant login ID or password is invalid or the account is inactive.)

 

 

with

<form method='post' action="https://test.authorize.net/gateway/transact.dll"> and

<input type='hidden' name="x_test_request" value="false" />

... I get the error

 

Ah but I just tried it with

https://secure.authorize.net/gateway/transact.dll   and I get the form.  Kind of a plain form, but I can continue testing from that - I have to try getting an identifier back to marry into the database that the payment was made.

 

Live/production account don't work with the test server test.authorize.net

get a test account for testing on the test server.

 

read this

http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Sandbox-Accounts-vs-Liv...