Hey all i am in need of some help.
When i try to submit the code below i get an error of:
3,2,13,The merchant login ID or password is invalid or the account is
inactive.,,P,0,,,4.99,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,D1A169FCE81B93T56487953EB3A87FA5C,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, My
My code is this:
<?php
require_once 'anet_php_sdk/AuthorizeNet.php'; // Include the SDK you downloaded in Step 2
$api_login_id = 'MyLoginID';
$transaction_key = 'MyTransactionKey';
$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 action="https://test.authorize.net/gateway/transact.dll" method="post">
<input type="hidden" value="TRUE" name="x_delim_data">
<input type="hidden" value="<?php echo $fingerprint?>" name="x_fp_hash">
<input type="hidden" value="<?php echo $fp_sequence?>" name="x_fp_sequence">
<input type="hidden" value="<?php echo $fp_timestamp?>" name="x_fp_timestamp">
<input type="hidden" value="<?php echo $api_login_id?>" name="x_login">
<input type="hidden" value="TRUE" name="x_relay_response">
<input type="hidden" value="http://www.mobileit-usa.com/SIM.php" name="x_relay_url">
<input type="hidden" value="3.1" name="x_version">
<input type="hidden" value="," name="x_delim_char">
<input type='hidden' name="x_method" value="cc">
<INPUT TYPE="hidden" NAME="x_invoice_num" VALUE="ORDER-002450">
<input type='hidden' name="x_show_form" value="payment_form">
<input type='hidden' name="x_test_request" value="false" />
<fieldset>
<div>
<label>Invoice Amount</label>
<input type="text" value="" name="x_amount" size="15" class="text">
</div>
<div>
<label>Credit Card Number</label>
<input type="text" value="" name="x_card_num" size="15" class="text">
</div>
<div>
<label>Exp.</label>
<input type="text" value="" name="x_exp_date" size="4" class="text">
</div>
<div>
<label>CCV</label>
<input type="text" value="782" name="x_card_code" size="4" class="text">
</div>
</fieldset>
<fieldset>
<div>
<label>First Name</label>
<input type="text" value="" name="x_first_name" size="15" class="text">
</div>
<div>
<label>Last Name</label>
<input type="text" value="" name="x_last_name" size="14" class="text">
</div>
</fieldset>
<fieldset>
<div>
<label>Address</label>
<input type="text" value="" name="x_address" size="26" class="text">
</div>
<div>
<label>City</label>
<input type="text" value="" name="x_city" size="15" class="text">
</div>
</fieldset>
<fieldset>
<div>
<label>State</label>
<input type="text" value="" name="x_state" size="4" class="text">
</div>
<div>
<label>Zip Code</label>
<input type="text" value="" name="x_zip" size="9" class="text">
</div>
<div>
<label>Country</label>
<input type="text" value="US" name="x_country" size="22" class="text">
</div>
</fieldset>
<input type="submit" class="submit buy" value="BUY">
</form>
Any help would be great!
Thanks,
David
Good news and bad news.
Good news is that is a easy fix. You are posting to the test server using your production loginid and transKey.
The production server is
https://secure.authorize.net/gateway/transact.dll
Bad news is that you NEED to change your transKey since you post it for everyone to see(and misuse).
01-27-2012 06:02 PM
01-27-2012 06:55 PM