close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Does webassist have code generator for echeck?

Thread began 4/24/2020 2:49 pm by lr_leal239405 | Last modified 8/27/2020 11:58 am by Ray Borduin | 339 views | 9 replies |

lr_leal239405

Does webassist have code generator for echeck?

My boss wants me to implement a way for people to pay with checks (or direct banking) online. We already have a working eCart (as you helped a lot with). But now they want to eCheck wihich it's called using Authorize.net (that's what we're using). I'm looking for the easy way out (as many of us are ;) ). If not, I'll keep looking on how to implement through their API and online info. Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

I think our code could be updated to work with eCheck. I believe just a few fields would be updated, but it would probably have to be done by hand. This is something I could help with in a premier support ticket.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

How long do you think it would take?

Sign in to reply to this post

Ray BorduinWebAssist

Probably around 2 hours assuming you had all of the forms set up.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

ok. well, let me set up forms first and see how far I get. I will probably need about that much time of tech support for other stuff i've been putting together that have some glitches to get through. thanks.

Sign in to reply to this post

lr_leal239405

Sorry to bother you. Can you refresh my memory on where the handful of things to change are to get our existing Authorize.net account to work with eCheck?

see below: thanks.

Sign in to reply to this post

Ray BorduinWebAssist

x_method has to be changed to "ECHECK"

Then you can get rid of:
x_card_num
x_exp_date
x_card_code

Then you have to set:
x_bank_aba_code = Routing number of a bank for eCheck.Net transactions.
x_bank_acct_num = Checking or savings account number.
x_bank_acct_type" = Acceptable values include CHECKING, BUSINESSCHECKING, and SAVINGS.
x_bank_name = Contains the name of the customer's financial institution.
x_bank_acct_name = The cutomer's name as it appears on their bank account.
x_echeck_type = Indicates the type of eCheck.Net payment request. Acceptable values include CCD, PPD, TEL, and WEB.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

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();
}
}
?>

Sign in to reply to this post

Ray BorduinWebAssist

So you see the failure message?

I'm sure you can get rid of:

$nextIndex = count($AuthNet_required[0]);
$AuthNet_required[0][$nextIndex] = "x_type";
$AuthNet_required[1][$nextIndex] = "AUTH_CAPTURE";

But other than that it does look correct to me. Next I would check the session to see if you get an intelligent error message that might help you track down the problem. If you want to do a premier support ticket I could help you debug this.

try:
var_dump($WAGatewayResponse);

before the echo to see what is in the response that might be helpful to track down what is wrong.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

The response was:

bool(false) FAILURE

I'll try calling you.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...