Re: $100 reward for a solution (HSBC payment gateway)
can you explain your exact problem pls?
I'm working with the hsbc solution with the atos module and everything is working fine, so I may help you!
regards
Re: $100 reward for a solution (HSBC payment gateway)
I am using the foamcow module which is now all working apart from the point in the return code where it expects to have the variable $GLOBAL['hsbc'] set (but there is no place elsewhere in the code it is refrerred to, so it seems that it could never get set). In other words the transaction return from HSBC is valid but the post return processing fails due to an uninstantiated object $hsbc.
I don't know anything of the atos module but if it will work on a linux platform and you can provide me with documentation which enables me to get it fully functional within one hour of my time I will happily pay you $100 but I have to get it working by the end of tomorrow.
Re: $100 reward for a solution (HSBC payment gateway)
You can try to change:
$hsbc=$GLOBALS['hsbc'];
to
$hsbc=$_GLOBALS['hsbc'];
Re: $100 reward for a solution (HSBC payment gateway)
It might be worth my reiterating that it needs to work with zen cart and *hsbc* (a quick googleleads me to believe this may not be the case).
Re: $100 reward for a solution (HSBC payment gateway)
No one is trying to get the reward from you, at least me, I simply pointed out the obvious error you have in the codes you posted.
Quote:
Originally Posted by
sdclee
It might be worth my reiterating that it needs to work with zen cart and *hsbc* (a quick googleleads me to believe this may not be the case).
Re: $100 reward for a solution (HSBC payment gateway)
Quote:
Originally Posted by
yellow1912
You can try to change:
$hsbc=$GLOBALS['hsbc'];
to
$hsbc=$_GLOBALS['hsbc'];
Unlike the other global variables ($_POST, $_SESSION etc) $GLOBALS is the correct form - Don't you just love a language with those kind of inconsistencies ;-)
Re: $100 reward for a solution (HSBC payment gateway)
Weird, since I do use that in my script. But why not just declare it as global instead?
global $hsbc;
--> this way it will work exactly the way it should.
EDIT: I have just checked, you are right, it does use $GLOBALS
Re: $100 reward for a solution (HSBC payment gateway)
@sdclee: btw, it would be easier for other guys to help you if you post where you can that script, and the content of the whole module if possible.
Re: $100 reward for a solution (HSBC payment gateway)
Quote:
Originally Posted by
yellow1912
Weird, since I do use that in my script. But why not just declare it as global instead?
global $hsbc;
--> this way it will work exactly the way it should.
That wouldn't help. The hsbc_return.php expects to have $GLOBALS['hsbc'] set.
$GLOBALS is set in a major way, for example:
Code:
[GLOBALS] => Array
*RECURSION*
[za_dir] => Directory Object
(
[path] => includes/extra_configures
[handle] => Resource id #3
)
[zv_file] =>
[autoLoadConfig] => Array
(
[0] => Array
.....
but it does not have an associative key 'hsbc' and therefore the object $hash cannont be instantiated.
The critical next line:
Code:
$hash=$hsbc->getHash($post_2);
results in:
Code:
Fatal error: Call to a member function on a non-object in /full/path/to/domain/cartdir/hsbc_return.php on line 54 (line number may differ for others as I have debug code in there too).
Anyone who has (or had) the foamcow module working must have surmounted this issue.
As for the reward, it is a genuine offer for a working solution. If it had turned out to be an errant semicolon, underscore or anything equally prosaic I would still get my wallet out :)