cancel
Showing results for 
Search instead for 
Did you mean: 

regarding echeck using SIM

i am using the following code for echeck payments through SIM for the live account(not testing account) but it showing error code 66 
PLS HELP

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
Payment Pages: Sample PHP Payment Form
</title>
<style type="text/css">
label {
display: block;
margin: 5px 0px;
color: #AAA;
}
input {
display: block;
}
input[type=submit] {
margin-top: 20px;
}
</style>

</head>
<body>
<h1>Processing Please Wait...</h1>

<form action="https://secure2.authorize.net/gateway/transact.dll" method="POST" name="f1" id="frmSignUp">


<?php

$x_login = "xxxxxxx"; // Take from Payment Page ID in Payment Pages interface
$x_amount = "100";
srand(time()); // initialize random generator for x_fp_sequence
$x_fp_sequence = rand(1000, 100000) + 123456;
$x_invoice_num = &$x_fp_sequence;
$x_fp_timestamp = time(); // needs to be in UTC. Make sure webserver produces UTC
$x_currency_code = "USD";
$x_method = "ECHECK";
$x_echeck_type = "WEB";
$x_relay_response = "FALSE";
$x_delim_data = "TRUE";
$x_type = "AUTH_CAPTURE";


// The values that contribute to x_fp_hash
$hmac_data = $x_login."^".$x_fp_sequence."^".$x_fp_timestamp."^".$x_amount;
$x_fp_hash = hash_hmac('MD5', $hmac_data);

echo ('<input name="x_login" value="' . $x_login . '" type="hidden">' );
echo ('<input name="x_amount" value="' . $x_amount . '" type="hidden">' );
echo ('<input name="x_fp_sequence" value="' . $x_fp_sequence . '" type="hidden">' );
echo ('<input name="x_invoice_num" value="' . $x_invoice_num . '" type="hidden">' );
echo ('<input name="x_fp_timestamp" value="' . $x_fp_timestamp . '" type="hidden">' );
echo ('<input name="x_fp_hash" value="' . $x_fp_hash . '" size="50" type="hidden">' );
echo ('<input name="x_method" value="' . $x_method . '" type="hidden">');
echo ('<input name="x_echeck_type" value="' . $x_echeck_type . '" type="hidden">');
echo ('<input name="x_relay_response" value="' . $x_relay_response . '" type="hidden">');
echo ('<input name="x_delim_data" value="' . $x_delim_data . '" type="hidden">');
echo ('<input name="x_type" value="' . $x_type . '" type="hidden">');


// create parameters input in html
foreach ($_POST as $a => $b) {
echo "<input type='hidden' name='".htmlentities($a)."' value='".htmlentities($b)."'>";
}

?>

<input type="hidden" name="x_show_form" value="PAYMENT_FORM"/>
</form>

<script type='text/javascript'>document.f1.submit();</script>

</body>
</html>

krishna049
Member
3 REPLIES 3
RichardH
Administrator Administrator
Administrator

does accept.js supports echeck transactions or it is only for credit card ??

Hi @krishna049,

 

Just cards at this time. The idea of expanding it to eCheck has been proposed, and you can vote for that here:

 

https://community.developer.authorize.net/t5/Ideas/Include-ACH-in-Accept-Js/idi-p/55888