Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default (HSBC payment gateway)

    Originally posted by CrystalClear [snipped quote]:

    Quote Originally Posted by CrystalClear View Post
    hsbc_return.php page. i get the following error:

    Fatal error: Call to a member function on a non-object in /home/sites/myclientwebsite.com/public_html/hsbc_return.php on line 51

    and line 51 is : $hash=$hsbc->getHash($post_2);

    the cpiResult is 0 so the transaction is approved by hsbc, i just can't get this to work
    I have looked at this myself and cannot for the life of me deduce where $GLOBALS['hsbc'] should/would be set:

    Code:
       $hsbc=$GLOBALS['hsbc'];
       $hash=$hsbc->getHash($post_2);
    So - a genuine offer of $100 for the first working solution.

  2. #2
    Join Date
    Feb 2008
    Posts
    3
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: $100 reward for a solution (HSBC payment gateway)

    You can try to change:
    $hsbc=$GLOBALS['hsbc'];

    to

    $hsbc=$_GLOBALS['hsbc'];
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

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

  6. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default 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 View Post
    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).
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #7
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default Re: $100 reward for a solution (HSBC payment gateway)

    Quote Originally Posted by yellow1912 View Post
    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 ;-)

  8. #8
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default 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
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #9
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default 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.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  10. #10
    Join Date
    Apr 2008
    Location
    Cumbria, England
    Posts
    24
    Plugin Contributions
    0

    Default Re: $100 reward for a solution (HSBC payment gateway)

    Quote Originally Posted by yellow1912 View Post
    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 :)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. hsbc secure epayments gateway
    By Nick1973 in forum General Questions
    Replies: 10
    Last Post: 6 Jan 2011, 03:18 PM
  2. HSBC as payment gateway and processor??
    By clairy in forum Addon Payment Modules
    Replies: 5
    Last Post: 11 Jun 2010, 02:31 PM
  3. Order details missing -- using HSBC payment gateway
    By jay soma in forum Addon Payment Modules
    Replies: 1
    Last Post: 2 Sep 2009, 05:30 PM
  4. HSBC Payment
    By Blaze Falconburger in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 15 Feb 2008, 10:05 PM
  5. HSBC - UK Payment
    By simpo in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 21 Sep 2006, 04:04 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