This is what I got, but it's not communicating with Authorize.net with this code. Does the below seem right?
<?php include("../template/session_track.php"); ?>
<?php require_once('../webassist/ecart/checkout/credentials/gateways.php'); ?>
<?php require_once('../Connections/convacc_cx.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php require_once("../webassist/forms/persist.php"); ?>
<?php require_once("../WA_eCart/Adv_CO_Scripts/AuthNet_PHP.php"); ?>
<?php include("../template/session_track.php"); ?>
<?php session_start(); ?>
<?php
if (isset($_POST["CheckingAcct_submit"]) || isset($_POST["CheckingAcct_submit_x"])) {
$AuthNet_required = array();
$AuthNet_required[0] = array();
$AuthNet_required[1] = array();
$AuthNet_itemized = array();
$AuthNet_itemized[0] = array();
$AuthNet_itemized[1] = array();
$AuthNet_optional = array();
$AuthNet_optional[0] = array();
$AuthNet_optional[1] = array();
$cartIndex = 0;
$nextIndex = 0;
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_login";
$AuthNet_required[1][$nextIndex] = "".($WA_Authorize_Net_API_Credentials_Login_ID) ."";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_tran_key";
$AuthNet_required[1][$nextIndex] = "".($WA_Authorize_Net_API_Credentials_Transaction_Key) ."";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_version";
$AuthNet_required[1][$nextIndex] = "3.1";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_invoice_num";
$AuthNet_required[1][$nextIndex] = "".session_id() ."";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_test_request";
$AuthNet_required[1][$nextIndex] = "".($WA_Authorize_Net_API_Credentials_TestMode) ."";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_method";
$AuthNet_required[1][$nextIndex] = "ECHECK";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_type";
$AuthNet_required[1][$nextIndex] = "AUTH_CAPTURE";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_relay_response";
$AuthNet_required[1][$nextIndex] = "FALSE";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_delim_data";
$AuthNet_required[1][$nextIndex] = "TRUE";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_delim_char";
$AuthNet_required[1][$nextIndex] = "::";
$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_customer_ip";
$AuthNet_required[1][$nextIndex] = "".$_SERVER["REMOTE_ADDR"] ."";
$AuthNet_itemized[0][0] = "x_amount";
$AuthNet_itemized[1][0] = "". ".01" ."";
$AuthNet_itemized[0][1] = "x_description";
$AuthNet_itemized[1][1] = "". $_POST["echeckmemo"] ."";
$AuthNet_optional[0][$nextIndex] = "x_bank_acct_name";
$AuthNet_optional[1][$nextIndex] = "".(WA_getSavedFormValue('WA_Payments','nameOnAcct')) ."";
$nextIndex = count($AuthNet_optional[0]);
$AuthNet_optional[0][$nextIndex] = "x_bank_aba_code";
$AuthNet_optional[1][$nextIndex] = "".(WA_getSavedFormValue('WA_Payments','addBankAccountRoutingNumber')) ."";
$nextIndex = count($AuthNet_optional[0]);
$AuthNet_optional[0][$nextIndex] = "x_bank_acct_num";
$AuthNet_optional[1][$nextIndex] = "".(WA_getSavedFormValue('WA_Payments','addBankAccountNumber')) ."";
$nextIndex = count($AuthNet_optional[0]);
$AuthNet_optional[0][$nextIndex] = "x_bank_acct_type";
$AuthNet_optional[1][$nextIndex] = "".(WA_getSavedFormValue('WA_Payments','addBankAccountType')) ."";
$AuthNet_optional[0][$nextIndex] = "x_bank_name";
$AuthNet_optional[1][$nextIndex] = "".(WA_getSavedFormValue('WA_Payments','addBankName')) ."";
$nextIndex = count($AuthNet_optional[0]);
$AuthNet_optional[0][$nextIndex] = "x_echeck_type";
$AuthNet_optional[1][$nextIndex] = "".(WA_getSavedFormValue('WA_Payments','addeCheckType')) ."";
$WAGatewayResponse = AuthNet_Post($AuthNet_required,$AuthNet_itemized,$AuthNet_optional);
if ($WAGatewayResponse) {
//$eCart1->redirStr = "checkout_success.php";
echo "SUCCESS";
} else {
echo "FAILURE";
exit();
}
}
?>