Forums / Built-in Shipping and Payment Modules / Help needed with DirectOne (AU)

Help needed with DirectOne (AU)

Locked
Results 1 to 16 of 16
This thread is locked. New replies are disabled.
25 Aug 2006, 01:10
#1
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

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
25 Aug 2006, 07:27
#2
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

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
25 Aug 2006, 10:11
#4
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

Re: Help needed with DirectOne (AU)

DrByte,

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

Goshawk
25 Aug 2006, 12:35
#5
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

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
25 Aug 2006, 20:14
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Help needed with DirectOne (AU)

line 44:[PHP] $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");
[/PHP]change to:[PHP] 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");
[/PHP]
25 Aug 2006, 23:31
#7
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

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
04 Sep 2006, 06:34
#8
scooby_doo avatar

scooby_doo

New Zenner

Join Date:
Jan 2006
Posts:
9
Plugin Contributions:
0

Re: Help needed with DirectOne (AU)

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/showthread.php?t=9996&highlight=directone) - is that available?

Thanks!
04 Sep 2006, 08:00
#9
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

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
04 Sep 2006, 11:01
#10
richard123 avatar

richard123

New Zenner

Join Date:
Jun 2005
Posts:
10
Plugin Contributions:
0

Re: Help needed with DirectOne (AU)

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/showthread.php?t=9996&highlight=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.
05 Sep 2006, 01:42
#11
scooby_doo avatar

scooby_doo

New Zenner

Join Date:
Jan 2006
Posts:
9
Plugin Contributions:
0

Re: Help needed with DirectOne (AU)

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.
05 Sep 2006, 03:40
#12
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

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
05 Sep 2006, 13:04
#13
scooby_doo avatar

scooby_doo

New Zenner

Join Date:
Jan 2006
Posts:
9
Plugin Contributions:
0

Re: Help needed with DirectOne (AU)

Goshawk:

did you use the workaround by richard123?


No, I changed nothing. I wanted to do as little fiddling as possible for the obvious reasons. My friends have decided to go live with their site this evening so they are confident the module is working. There may be a possible bug or requirement within the module that order priority has to be unique for each payment type. I believe this is also the case in Order Total modules whereas it obviously doesn't matter with product categories, etc.

Good luck sorting it out!
05 Sep 2006, 13:09
#14
scooby_doo avatar

scooby_doo

New Zenner

Join Date:
Jan 2006
Posts:
9
Plugin Contributions:
0

Re: Help needed with DirectOne (AU)

Goshawk, just a thought, but have you provided DirectOne the correct IP address for your server? Has your hosting company changed servers / IP addresses recently? It's worth confirming as the module will not work without the accurate IP address...so I'm told.
06 Sep 2006, 00:29
#15
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

Re: Help needed with DirectOne (AU)

Thanks scooby-doo,

I have setup the paypal module for the time being, as I realy need my store online for now. I will look into this further in a week or so, as I wasted a few days on this module.

I have checked my IP address, and that is fine, I have the same problem as you, that it does not appear to connect to direct one.

Great to know the module works fine, as now at least I know that it should be able to run on my system too.

Goshawk
13 Sep 2006, 16:17
#16
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Posts:
220
Plugin Contributions:
2

Re: Help needed with DirectOne (AU)

After pulling out all my hair, I realised that GoDaddy needs to have a proxy set to get cURL to work. I have made additional changes to the original DirectOne module, to work with GoDaddy settings.

If you have a shared host account at GoDaddy, you could download my contribution here

Many thanks for all that helped me in my moments of dispair.

Goshawk