tomped Posted February 2, 2012 Share Posted February 2, 2012 Hello! I have a problem that I hope someone can help me to solve. Today I'm using Payson as the payment option together with a module from Prestaworks. Payson is offering two options; credit card/bank transaction and invoice. When a customer clicks to confirm his or her order when paying with Payson invoice, the payment module has problems to redirect to the order-confirmation page. It only goes blank and the browser's address line says for example http://vaggur.se/modules/payson/return.php?id_cart=417&TOKEN=**** I have switched on display_errors in the config.inc file and then the same page gives me this error code: Fatal error: Call to a member function getPageLink() on a non-object in /home/vaggurse/public_html/classes/Tools.php on line 88 But, when paying with credit card/bank transaction the redirect works fine. I'm using Prestashop 1.4.3 together with a different one page checkout (if that matters?). I can't figure out what's wrong and it would be nice to get the proper order confirmation page displayed. Link to comment Share on other sites More sharing options...
cedricfontaine Posted February 2, 2012 Share Posted February 2, 2012 Is it the only error you have ? Do you see any call to getPageLink in return.php of the module ? Link to comment Share on other sites More sharing options...
tomped Posted February 2, 2012 Author Share Posted February 2, 2012 (edited) Yes, this is the only error I have (at least what I'm aware of). I checked the return.php file, but couldn't find any call to getPageLink Edit: But I found something mentioned as redirectLink, if that has something so say? Edited February 2, 2012 by Vaggur.se (see edit history) Link to comment Share on other sites More sharing options...
tomped Posted February 3, 2012 Author Share Posted February 3, 2012 The problem is now solved! I had to add $link = new Link(); in the file return.php (for the Payson module). If someone with same problem reads this, $link = new Link(); should be added under $obj_payson = NEW Payson(); (row 6). 1 Link to comment Share on other sites More sharing options...
prestalollo Posted July 29, 2012 Share Posted July 29, 2012 I am trying to use Payson own module for Payson Direct: I am getting the same response as above. In their redicerct.php, it says "Tools::redirectLink($paysonBrowserRedirectURL . $token);" Can this be solved? Link to comment Share on other sites More sharing options...
bellini13 Posted July 29, 2012 Share Posted July 29, 2012 the solution was posted directly above your post If someone with same problem reads this, $link = new Link(); should be added under $obj_payson = NEW Payson(); (row 6). Link to comment Share on other sites More sharing options...
prestalollo Posted July 29, 2012 Share Posted July 29, 2012 Thank you, but the "$obj_payson = NEW Payson();" is not to be found in theri file redirect.php, and I don't know how and where to put in the $link = new Link(); Link to comment Share on other sites More sharing options...
bellini13 Posted July 29, 2012 Share Posted July 29, 2012 provide the exact error you are receiving Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now