lyra / plugin-magento

An open source plugin that links Magento based e-commerce websites to PayZen secure payment gateway developed by Lyra Network.
https://lyra.com/fr/guides/magento/
Open Software License 3.0
10 stars 12 forks source link

Redirected to checkout/cart after successful payment with the iframe method #27

Closed fgerodez closed 5 months ago

fgerodez commented 2 years ago

Hi,

We've spent some time to try and understand why successful payments through the iframe form were always redirected to the empty cart page instead of the standard Magento checkout/success page.

It turns out that a new plugin was added quite recently that prevents the php session from being started on payzen/payment/response :

https://github.com/lyra/plugin-magento/blob/master/Controller/Plugin/SessionChecker.php

I don't understand the logic behind this plugin as the Response Controller explicitly uses the session to store important information :

image

Without these, the checkout success page cannot find the order and always redirects to checkout/cart.

Can you look at it?

Thanks,

nberhouche commented 2 years ago

Hello there, We added that new plugin, due to the new cookies management in Magento 2.4.x (For more informatio, please read: https://support.magento.com/hc/en-us/articles/360049032952-Customers-get-logged-out-or-lose-cart-content-on-Magento-storefront).

We couldn't reproduce the problem you're experiencing. Can you provide us with more info: logs, browser used, frequency....

Best regards