claudia3009 Posted March 27, 2012 Share Posted March 27, 2012 Hello! While trying to buy with the PayPal method, the customer can't pass from the order confirmation page. In submit.php, they click on the button "I confirm my order" and, instead of redirecting to the PayPal payment page, it just reloads the same confirmation page. I have tried uninstalling the module, deleting the folder and reinstalling again, and the problem persists. I've also tried with different accounts and with paypal sandbox, with the same results. There are no errors reported in Tools > Log. Has anyone encountered a similar error? Can this be a configuration error on my end? Prestashop version: 1.4.7 PayPal module version: 2.8.5 Language: Portuguese Thank you! Link to comment Share on other sites More sharing options...
rellik Posted March 27, 2012 Share Posted March 27, 2012 Found this in another forum and it works. This is the header for the forum [workaround] SSL stops redirect to Paypal using API I found it! The 1.4.7.0 release added code to the \classes\FrontController.php file starting on line 87. Below are temporary changes to make until an updated file is issued by the Prestashop team. I grabbed a few lines prior to and after the comments to make it easier to find. if ($this->ssl AND !Tools::usingSecureMode() AND Configuration::get('PS_SSL_ENABLED')) { header('HTTP/1.1 301 Moved Permanently'); header('Location: '.Tools::getShopDomainSsl(true).$_SERVER['REQUEST_URI']); exit(); } /* * Rhapsody Commented out offending code that breaks SSL redirect with Paypal else if (Configuration::get('PS_SSL_ENABLED') AND Tools::usingSecureMode() AND !($this->ssl)) { header('HTTP/1.1 301 Moved Permanently'); header('Location: '.Tools::getShopDomain(true).$_SERVER['REQUEST_URI']); exit(); } * * * end of Rhapsody Commented out offending code that breaks SSL redirect with Paypal ** */ ob_start(); /* Loading default country */ $defaultCountry = new Country((int)Configuration::get('PS_COUNTRY_DEFAULT'), Configuration::get('PS_LANG_DEFAULT')); $cookieLifetime = (time() + (((int)Configuration::get('PS_COOKIE_LIFETIME_FO') > 0 ? (int)Configuration::get('PS_COOKIE_LIFETIME_FO') : 1)* 3600)); Link to comment Share on other sites More sharing options...
claudia3009 Posted March 27, 2012 Author Share Posted March 27, 2012 Thank you! In the meanwhile I found that same solution in a forum post and it worked like a charm. Link to comment Share on other sites More sharing options...
1337 Posted April 9, 2012 Share Posted April 9, 2012 +++ thanks for that! 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