We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 61822472 authored by Ángel Campos's avatar Ángel Campos Committed by GitHub

[PW-2174]: Removing sync order cancellation for 3DS1 failure response (#679)

* [PW-2174]: Removing sync order cancellation for 3DS failure response

* [PW-2174]: Removing sync order cancellation for 3DS failure response

* [PW-2174]: Removing sync order cancellation for 3DS2 failure response

* [PW-2174]: Restoring 3DS2 cancellation because it isn't redirect

* [PW-2174]: Adding comment to clarify non cancellation
Co-authored-by: default avatarcyattilakiss <42297201+cyattilakiss@users.noreply.github.com>
parent 1ce56788
......@@ -224,12 +224,12 @@ class Redirect extends \Magento\Framework\App\Action\Action
$this->_redirect('checkout/onepage/success', ['_query' => ['utm_nooverride' => '1']]);
} else {
$order->addStatusHistoryComment(__('3D-secure validation was unsuccessful.'))->save();
// Move the order from PAYMENT_REVIEW to NEW, so that can be cancelled
$order->setState(\Magento\Sales\Model\Order::STATE_NEW);
$this->_adyenHelper->cancelOrder($order);
$this->messageManager->addErrorMessage("3D-secure validation was unsuccessful");
/*
* Since responseCode!='Authorised' the order could be cancelled immediately,
* but redirect payments can have multiple conflicting responses.
* The order will be cancelled if an Authorization Success=False notification is processed instead
*/
$order->addStatusHistoryComment(__('3D-secure validation was unsuccessful. This order will be cancelled when the related notification has been processed.'))->save();
// reactivate the quote
$session = $this->_getCheckout();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment