cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

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
Who Me Too'd this topic