Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Posts
    55
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Nov 2006
    Posts
    55
    Plugin Contributions
    0

    Default 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...

  3. #3
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default 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:

    PHP Code:
    (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']) : '';


  4. #4
    Join Date
    Jan 2007
    Location
    SE US
    Posts
    13
    Plugin Contributions
    0

    Default 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??
    (something clever goes here)

 

 

Similar Threads

  1. Credit Card payments not going to pay pal
    By drgraphix in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 6 Jul 2009, 07:02 PM
  2. paypal echeck payments not showing up in admin (v1.3.7.1 full patched)
    By gatto in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 14 May 2008, 06:55 PM
  3. My PayPal IPN echeck orders not completing
    By sergiogold in forum Built-in Shipping and Payment Modules
    Replies: 78
    Last Post: 9 May 2008, 03:10 AM
  4. PayPal eCheck payment does not generate order confirmation email
    By dealbyethan.com in forum Built-in Shipping and Payment Modules
    Replies: 13
    Last Post: 24 Mar 2008, 07:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR