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
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
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:
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() {
return false;
}
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.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'];
}
I don't know if what I did was "right", but the data is going into the database now!
Hope this helps someone...
This block should be changed to: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'];
}
PHP Code:
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']) : '';
}
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??
(something clever goes here)
Bookmarks