Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  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,443
    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,443
    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
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Help needed with DirectOne (AU)

    Dr Byte,

    I have fixed all the error messages as per your previous instructions.

    The file now seems to install correctly.

    When I look in my manager, unfortunately there is no reference to DirectOne, so I cannot configure my payment system.

    Do you have any suggestions?

    Kind regards,

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

  8. #8
    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!

  9. #9
    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

  10. #10
    Join Date
    Jun 2005
    Location
    Melbourne
    Posts
    16
    Plugin Contributions
    0

    Default Re: Help needed with DirectOne (AU)

    Quote Originally Posted by scooby-doo
    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?
    PHP can be compiled with or without cURL (http://curl.haxx.se/ / http://www.php.net/curl) support for https pages. When I first installed the Directone module, it turned out my server did not have PHP with curl ssl support, and so it wouldn't work.
    I am no guru with recompiling stuff, so I asked cheetaweb to do it for me. (Plenty of others available, I expect. If you don't have your own server, then you should ask your webhost to do it.)

    Then it was just a matter of installing the module and it all went without a hitch. Except for the small problem I described here: http://www.zen-cart.com/forum/showthread.php?t=9996. NetworkDaddy then took that small correction and implemented in the "updated" version - which I don't know whether it was ever done.

    Sorry if this isn't much help. But regardless of everything else, I don't think you'll be able to get any credit card payment module integrated unless you get curl ssl support into PHP first.

 

 
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