cancel
Showing results for 
Search instead for 
Did you mean: 

Issue when purchase with authorize.net redirect to empty cart page

Issue when purchase with authorize.net redirect to empty cart page

Preconditions
I used Magento community version 1.9.3.0 then I upgraded to M2 2.1.7 and then I upgraded to 2.2.3 now I am using version 2.2.3

  1. Server used Varnish and Redis, PHP7.0 MySql 5.6
    The extension for payment I use Authorize.Net CIM of Paradox Lab

Steps to reproduce

  1. I can purchase good on M2 2.1.7 w/o any issues and used Authorize.Net CIM of Paradox Lab
  2. After I Upgraded to 2.2.3 version and purchase by Authorize.Net CIM of Paradox Lab I got the issue

Expected result

  1. After complete purchase by credit card it must be go to success page

Actual result

  1. It went to empty cart page
    I had debug and it seems all session is clear that is reason it went to empty card page.
    Please help me check if this is new bug
-------
Migrate Magento 1 to 2 with low cost.
13 REPLIES 13

Re: Issue when purchase with authorize.net redirect to empty cart page

Hello @TuanBQ

 

When you do place orders, your quote will become order, so then after the quote is empty.

 

you need to get last order from the session, hope it will help you.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Issue when purchase with authorize.net redirect to empty cart page

Thanks for your reply. I did this but all session is cleared it is very strange issue. Nothing in session.

-------
Migrate Magento 1 to 2 with low cost.

Re: Issue when purchase with authorize.net redirect to empty cart page

Hello @TuanBQ

 

May I know after order place it redirects on payment side?


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Issue when purchase with authorize.net redirect to empty cart page

No, it is on Magento side and data returned from Authorize.Net but nothing in session.

-------
Migrate Magento 1 to 2 with low cost.

Re: Issue when purchase with authorize.net redirect to empty cart page

Hello,

 

Is order placed ? and any log into var/log folder or any log into the console.

 

Please check that ajax response when click on place order.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Issue when purchase with authorize.net redirect to empty cart page

Order saved in back end after click to purchase but it redirect to empty cart page instead success page. If correct follow it must be go to success page.

-------
Migrate Magento 1 to 2 with low cost.

Re: Issue when purchase with authorize.net redirect to empty cart page

Hello @TuanBQ

 

Have you checked log and console network panel for same?


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Issue when purchase with authorize.net redirect to empty cart page

There is nothing in log file because all flow is correct, only one issue is it redirect to empty cart page instead success page. Correct flow it must be go to success page.

-------
Migrate Magento 1 to 2 with low cost.

Re: Issue when purchase with authorize.net redirect to empty cart page

Hi @TuanBQ

 

Couple of times i have seen this kind of issue , kindly refer this link it might be help you to debug the exact issue - http://blog.chapagain.com.np/magento-redirecting-to-cart-page-from-checkout-page-after-place-order/

 

Also to fix it temporary here is the solution - https://magento.stackexchange.com/questions/159021/magento-2-user-get-redirected-to-empty-cart-page

if issue solved,Click Kudos & Accept as Solution