Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Help needed with DirectOne (AU)

    Hi,

    I am trying to find out how I can get my DirectOne payment gateway set up in ZenCart. I have been reading some posts about it, and there should be a module available but I am unable to locate it.

    Has anyone been able to get DirectOne to work? And if so, please give me some directions, as I haven't got a clue.

    I did ring DirectOne but they were no help, strange though, as ZenCart is one of their recommended shopping cart software packages.

    If anyone has a working directone.php please let me know how to install it.

    Kind regards,

    Goshawk

  2. #2
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Re: Help needed with DirectOne (AU)

    Update:

    I have spoken to DirectOne, and they have informed me that the osCommerce copy of directone.php should be able to work with some adaptation.

    I have copied those files as suggested, but get the following error in my manager when I open the payment module:

    Fatal error: Call to undefined function: tep_db_query() in /home/content/i/n/e/XXX/html/shop/includes/modules/payment/directone.php on line 149

    This relates to this bit of code:

    function check() {
    if (!isset($this->_check)) {
    $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_DIRECTONE_STATUS'");
    $this->_check = tep_db_num_rows($check_query);
    }
    return $this->_check;


    Does anyone know how to fix this?

    Many thanks,

    Goshawk

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Help needed with DirectOne (AU)

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Help needed with DirectOne (AU)

    DrByte,

    Many thanks, if I get it working OK, I'll post it on the forum.

    Goshawk

  5. #5
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Re: Help needed with DirectOne (AU)

    DrByte,

    I have (to the best of my knowledge) made the changes as suggested in the Wiki pages.

    I am not getting any more error messages, but also am not able to see DirectOne in my manager's payment modules. The page also seems to take a long time to load.

    Initially I received the following messages:
    Warning: main(): Failed opening '/home/content/i/n/e/XXX/html/shop/includes/languages/english/modules/payment/directone_for_zencart.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/i/n/e/XXX/html/shop/InekesFashionsManager/modules.php on line 188

    Parse error: parse error, unexpected T_GLOBAL in /home/content/i/n/e/XXX/html/shop/includes/modules/payment/directone_for_zencart.php on line 45


    Then made this change:
    -- reversed Add (global $db;) to all functions that now reference ($db) as a result of these changes.-- on line 45 and no more errors were reported

    I am attaching a text file with the code (I have marked my changes) and hope you may find the time to review it for any obvious mistakes.

    Kind regards and thanks,

    Goshawk
    Last edited by Goshawk; 30 Sep 2006 at 04:24 PM.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Help needed with DirectOne (AU)

    line 44:
    PHP Code:
            $my_var = global $db;->Execute("select zone_id from " TABLE_ZONES_TO_GEO_ZONES " where geo_zone_id = '" MODULE_PAYMENT_DIRECTONE_ZONE "' and zone_country_id = '" $order->billing['country']['id'] . "' order by zone_id"); 
    change to:
    PHP Code:
              global $db;
            
    $my_var $db->Execute("select zone_id from " TABLE_ZONES_TO_GEO_ZONES " where geo_zone_id = '" MODULE_PAYMENT_DIRECTONE_ZONE "' and zone_country_id = '" $order->billing['country']['id'] . "' order by zone_id"); 
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2006
    Location
    Melbourne, Australia
    Posts
    10
    Plugin Contributions
    0

    Default Re: Help needed with DirectOne (AU)

    Quote Originally Posted by Goshawk
    I am trying to find out how I can get my DirectOne payment gateway set up in ZenCart. I have been reading some posts about it, and there should be a module available but I am unable to locate it.
    Hello, the module is located at http://www.zen-cart.com/archived_contributions/payment - see directone.

    I have installed it onto a friend's website on their behalf but I am still trying to determine how to properly integrate it. That is, we still don't have it working as it should but I don't think its the module's fault. At this stage, the standard credit card payment module included with ZenCart seems to be overriding it but I assume the two modules need to work together to take the credit card number and then communicate it to DirectOne.

    Networkdad (or anyone who knows), can you tell me what "CURL must be compiled into PHP" means?? Also, this module appears to be 2 years old yet in one of your posts around July 2005, you mentioned a possible update (http://www.zen-cart.com/forum/showth...ight=directone) - is that available?

    Thanks!

  8. #8
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Help needed with DirectOne (AU)

    Scooby doo,

    Looks like we have the same problem.
    I have been trying to get some help from NetworkDad, but he has not responded to me as yet.

    DirectOne are not going to help, though they now post a link to this file online in their shopping card recommendations. I have had several conversations with them, but their answer to date is that they do not give support for 3rd party modules.

    If you find a solution, please let me know, as I will do the same for you.


    Goshawk

  9. #9
    Join Date
    Jan 2006
    Location
    Melbourne, Australia
    Posts
    10
    Plugin Contributions
    0

    Re: Help needed with DirectOne (AU)

    Quote Originally Posted by Goshawk

    If you find a solution, please let me know, as I will do the same for you.
    Mate, I'm told I've "fixed it" as the friends who I'm helping are now reporting successful testing of the DirectOne module!

    After confirming that the SSL was in place, I decided to do some simple resorting of the payment module order. Both ZC credit card module and DirectOne module were listed as order 0 but when I set them to 1 and 2, suddenly there were two credit card options in their checkout vs just ZC. When I turned the ZC module off, DirectOne remained and my friends have tested successfully.

    I can't imagine that payment order fixed the whole thing...but that's all I did! ZC (which is turned off) is #1, DirectOne is #2 and COD is #3. Hope that helps you somehow.

    Lastly, Goshawk, you mention using an osCommerce module and editing it to suit. Please note, we are using the Dec 04 module listed in the ZenCart download archives (see previous post) NOT the osCommerce module.

  10. #10
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Help needed with DirectOne (AU)

    :) Am glad to hear yours is working.

    I will have a fiddle with the setting too.

    I just have had my server provider (GoDaddy) check my cURL, and they tell me it's al l go (and had been)

    did you use the workaround by richard123?

    still fiddling with setting..LOL

    Goshawk

    ps: I have been using the posted module, and not the converted osCommerce one

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Help needed fixing DirectOne module - writing to database.
    By shaztesting in forum Addon Payment Modules
    Replies: 1
    Last Post: 5 Aug 2009, 01:59 PM
  2. Help needed with layout
    By mike1234 in forum Basic Configuration
    Replies: 3
    Last Post: 7 Feb 2009, 07:23 PM
  3. Help with paypal IPN (urgent help needed!)
    By roy(irishtaxi) in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 Jun 2008, 07:06 AM
  4. help needed with new product type which allow images with different size to download
    By ashishgandhi in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Feb 2008, 08:57 AM
  5. Help with Code needed.
    By bumba000 in forum General Questions
    Replies: 19
    Last Post: 6 Feb 2008, 08:46 AM

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