Jump to content

Prestashop 1.6 Cart recovery after 3DSecure redirect


jucedupp

Recommended Posts

I am building a payment gateway module based on the Authorize.net (aim) module.  The issue is that after 3DSecure validation, it redirects back to the website, but the cart is not in context, I think.  

Before I am redirecting, I am saving the cart id to the session.

It throws the following error:

"Cart cannot be loaded or an order has already been placed using this cart"

This is triggered by:
 

 if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false)

on line 188 of classes/PaymentModule.php

How can I load/reload the cart correctly?  

Thanks

Jacques

Edited by jucedupp (see edit history)
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...