Jump to content

PS 1.6.1.12 Guest Checkout Invalid Token


Tiuz

Recommended Posts

Hello,

 

I am having problems with guest checkout and a payment module (sofortbanking).

If I try to checkout as guest the module says that the token is invalid. I already contact the module developers and they told me that it is a prestashop problem and a token should be generated for guest users as well.

Fatal error: Uncaught exception 'Exception' with message 'SOFORT Überweisung Error: (Invalid token) | | ' in /var/www/vhosts/fancy-cosmetics.com/httpdocs/fancy-cosmetics/modules/sofortbanking/controllers/front/payment.php:48 Stack trace:
#0 /var/www/vhosts/fancy-cosmetics.com/httpdocs/fancy-cosmetics/classes/controller/Controller.php(189): SofortbankingPaymentModuleFrontController->initContent()
#1 /var/www/vhosts/fancy-cosmetics.com/httpdocs/fancy-cosmetics/classes/Dispatcher.php(367): ControllerCore->run()
#2 /var/www/vhosts/fancy-cosmetics.com/httpdocs/fancy-cosmetics/index.php(28): DispatcherCore->dispatch()
#3 {main} thrown in /var/www/vhosts/fancy-cosmetics.com/httpdocs/fancy-cosmetics/modules/sofortbanking/controllers/front/payment.php on line 48

This is the code where the error is thrown.

if (!$this->isTokenValid()) {
  throw new \Exception(sprintf('%s Error: (Invalid token)', $this->module->displayName));
}

Can anybody help me with this issue?

 

Thank you and best regards

Philipp

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...