Closed wintermute-84 closed 6 years ago
@wintermute-84 We cannot reproduce this issue as described. Please provide the detailed steps we must follow to reproduce this issue. In addition, what payment method do you use, and any other information needed to reproduce your issue.
I am also facing same issue, when we cancel the payment it take us to cart instead of checkout page and all the fields get emptied. The issue exists in Magento Community Edition 2.2.0
Also when we refresh the checkout page we see the same behavior.
If you use CreditCard (QuickPay) as payment method and just cancel your payment on the HPP it will redirect back to checkout purging shipping address. You can debug JS that is loading the address.
Or you can use Adyen HPP with the same result as @reihaan has. It will redirect to cart and after proceeding to checkout you will see that shipping is empty.
Also I'm pretty sure that using Paypal\Hostedpro will have the same result but I don't have an account to verify it.
In all cases quote address is present in the DB.
And I'm also curious how have you tested/ with what payment method that you didn't get it to fail.
@wintermute-84, thank you for your report. We've created internal ticket(s) MAGETWO-82589 to track progress on the issue.
@wintermute-84, thank you for your report. The issue is already fixed in 2.2.4
Where can I find the code for this ?
@richardechidna I have fixed this in https://github.com/magento/magento2/issues/11197#issuecomment-359785930 Please check my commit https://github.com/kapil019/magento2/commit/108c3fac3d5bde3353433199359582e7bf7cea0f
@kapil019 thanks bro, but the code seem not to be working. My issue is after i fill in the shipment address and proceed to the payment section and then after refresh while being at payment section the shipping data gets removed
Yes, I'm getting the same issue, as @richardechidna described. Any solution?
@brekz unfortunately not yet. we are waiting on Magento's help. Will post it once we get it
Any update here? i am having the same issue.
Still having the problem with branch 2.2.4-preview. Is it already merged in there?
Also having this issue. The fix @kapil019 described is for when you use the step navigator at the top to go back and forth a page (as described here), not for the bug that occurs when refreshing the payment page or hitting the back button in your browser.
Any update having the same issue at magento v2.2.2
@fk-whothat, if you know how to add patches then maybe you can try this one for Magento_Checkout
to apply and see if it fixes issue for you?
This still happening in v2.4.2 The only difference in our payment flow is that the cartManagement->placeOrder method is called only when the gateway returns a successful payment. Otherwise the quote is kept active and user gets redirected to the payment page. The quote information is correct, it just seems that the checkout-data in the localstorage gets emptied and the quote shipping address is not correctly populated, resulting in the same issue originaly posted. This only happens for guest checkout. Is there an open issue for this?
This issue was reported multiple times and every ticket is closed. Like #5959
Preconditions
Steps to reproduce
Actual result
The shipping address is not loaded. Address is still present in db. Other quote info like products/prices are loaded.
Cancel action is standard:
If anyone has any fixes to this, please help. Referenced commit in other tickets: https://github.com/magento/magento2/commit/63ff3aee27a7d5830221aa6a2bf92f4bd88c56ef not only is missing from 2.2 but also does not fix it.