I am also having a similar problem but in my case, it is only third party payment.
I am using Magento 2.3.3 default one-step checkout. Full-page cache enabled and Redis is configured, the session is saved in DB.
'session' => [ 'save' => 'db' ], 'cache' => [ 'frontend' => [ 'default' => [ 'id_prefix' => 'aa_', 'backend' => 'Cm_Cache_Backend_Redis', 'backend_options' => [ 'server' => '127.0.0.1', 'database' => '0', 'port' => '6379', 'password' => '', 'compress_data' => '1', 'compression_lib' => '' ] ], 'page_cache' => [ 'id_prefix' => 'aa_', 'backend' => 'Cm_Cache_Backend_Redis', 'backend_options' => [ 'server' => '127.0.0.1', 'database' => '1', 'port' => '6379', 'password' => '', 'compress_data' => '0', 'compression_lib' => '' ] ] ] ],
Paypal and Bank transfer do take me to welcome page but no third party payment like eWay, AfterPay, ZipPay.
Last quote id is lost somewhere.
Any idea guys?
Hi @markus_korporal ,
we have the same problem with i-ways and Magento 2.3.2.
Can you explain, what changes you have made with your workaround?
can you check if there any 3rd party module is implemented using event observer for success page like
you can check that by following :
find app -name events.xml | xargs grep checkout_onepage_controller_success_action
it will give you all events.xml files which contains
check observer for that if they have coded to reset/reinitialized the session. try to disable the extension and place an order.
because on success page default Magento checks for the last success order id on the success page and it will redirect to cart in case of not found.
This error can also becaused by a wrong plugin. Each plugin has to return the same element as the "parent" returns.
Check if there are plugins in your app which are not returning anything.
Unfortunately it wasn't an observer or plugin. It was very weird. I'm hoping it never occurs again.
We have the same issue on M 2.4.1 with swissuplabs OSC. Are there any solutions?
I struggled with this problem for 3 days, then I realized it was due to the setting Shop-> Configuration-> Sales-> Sales Email-> Send Order Email Copy To. I had added a second email, and perhaps due to an incorrect character this problem occurred.
I think you are close to where the issue is. Seems there is some issue for sending emails which isn't being caught.
I just noticed this issue after installing Magetrend_Email. I had the same problem where upon clicking Place Order the user is redirected back to the cart. The order has been succesfully created in backend, but no email sent to customer and the cart quote is not cleared so it appears to user as order has not been placed.
What I discovered was that I had inadvertently used an Invoice template in the Order Confirmation settings instead of a template based on order confirmation. Magento must be trying to find invoice data but since there is none (for order placed using COD/money order) it is failing.
So check your email templates are based on the correct default template for Order and Invoice in Configuration > Sales > Sales Emails. I haven't bothered to look at the order flow in code as to why this would not display any frontend errors or exceptions in log though.
Finally...Its redirect on success page when disabling Order emails from admin.
Sales -> Sales Emails -> Order
So the issue is related with Order Email.
Same problem I am facing only for the Afterpay payment method.. Do you have solution for it?