Zen Cart Logo
Forums / General Questions / eCheck Payments Data not going to database (not paypal)

eCheck Payments Data not going to database (not paypal)

Locked

Views: 1,688

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Jun 2007, 8:07 AM
#1
kappaluppa avatar

kappaluppa

New Zenner

Join Date:
Nov 2006
Posts:
68
Plugin Contributions:
0

eCheck Payments Data not going to database (not paypal)

I am using the Accept eCheck Payments module. It is working fine, installed easily, sends emails. However, the information is not going into the database it created.

Can anyone help me with this issue?

thanks
K

24 Jun 2007, 5:32 PM
#2
kappaluppa avatar

kappaluppa

New Zenner

Join Date:
Nov 2006
Posts:
68
Plugin Contributions:
0

Re: eCheck Payments Data not going to database (not paypal)

Well, I solved my problem. Here is what I did. I am not an expert, so take my advice cautiously!

I found this in the echeck.php file at about line 128:

function before_process() {
return false;
}After comparing the cc.php file, I noticed that the before_process was not returning false and the data was going to the database. So I mimicked what was there and changed it to:

function before_process() {
global $_POST, $order;

if (defined('MODULE_PAYMENT_ECHECK_EMAIL')  == 'True') {
  $order->info['accountholder'] = $_POST['accountholder'];
}
$order->info['bank'] = $_POST['bank'];
$order->info['accountnumber'] = $_POST['accountnumber'];
$order->info['routingnumber'] = $_POST['routingnumber'];
}Now the info for these four fields is going into the database. The eCheck mod actually has more fields than that, but I don't need them, so I am only including those four fields.

I don't know if what I did was "right", but the data is going into the database now!

Hope this helps someone...

24 Jun 2007, 6:13 PM
#3
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: eCheck Payments Data not going to database (not paypal)

f (defined('MODULE_PAYMENT_ECHECK_EMAIL') == 'True') {
$order->info['accountholder'] = $_POST['accountholder'];
}
$order->info['bank'] = $_POST['bank'];
$order->info['accountnumber'] = $_POST['accountnumber'];
$order->info['routingnumber'] = $_POST['routingnumber'];
}

This block should be changed to:

f (defined('MODULE_PAYMENT_ECHECK_EMAIL') == 'True') {
$order->info['accountholder'] = (isset($_POST['accountholder'])) ? zen_db_prepare_input($_POST['accountholder']) : '';
}
$order->info['bank'] = (isset($_POST['bank'])) ? zen_db_prepare_input($_POST['bank']) : '';
$order->info['accountnumber'] = (isset($_POST['accountnumber'])) ? zen_db_prepare_input($_POST['accountnumber']) : '';
$order->info['routingnumber'] = (isset($_POST['routingnumber'])) ? zen_db_prepare_input($_POST['routingnumber']) : '';
}
15 Apr 2008, 9:51 PM
#4
formadmirer avatar

formadmirer

New Zenner

Join Date:
Jan 2007
Location:
SE US
Posts:
13
Plugin Contributions:
0

Re: eCheck Payments Data not going to database (not paypal)

Just installed this mod and I do get the check info via email, but nothing in the db. Tried both stock and after applying the above recommended fix.

Store is now v 1.3.8 and this mod is for 1.3.7, so I didn't expect it to work out-of-the-box.

Before I start tinkering though I was wondering if anyone else has made this work with 1.3.8 and would like to share their changes?? :lookaroun