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 975e9908 authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #157 from Adyen/develop-rik

#153 use query string for utm_nooverride
parents d2b6ea1c 7732ef9b
...@@ -97,7 +97,7 @@ class Result extends \Magento\Framework\App\Action\Action ...@@ -97,7 +97,7 @@ class Result extends \Magento\Framework\App\Action\Action
if ($result) { if ($result) {
$session = $this->_session; $session = $this->_session;
$session->getQuote()->setIsActive(false)->save(); $session->getQuote()->setIsActive(false)->save();
$this->_redirect('checkout/onepage/success', ['utm_nooverride' => '1']); $this->_redirect('checkout/onepage/success', ['_query' => ['utm_nooverride' => '1']]);
} else { } else {
$this->_cancel($response); $this->_cancel($response);
$this->_redirect('checkout/cart'); $this->_redirect('checkout/cart');
......
...@@ -95,7 +95,7 @@ class ResultPos extends \Magento\Framework\App\Action\Action ...@@ -95,7 +95,7 @@ class ResultPos extends \Magento\Framework\App\Action\Action
if ($result) { if ($result) {
$session = $this->_session; $session = $this->_session;
$session->getQuote()->setIsActive(false)->save(); $session->getQuote()->setIsActive(false)->save();
$this->_redirect('checkout/onepage/success', ['utm_nooverride' => '1']); $this->_redirect('checkout/onepage/success', ['_query' => ['utm_nooverride' => '1']]);
} else { } else {
$this->_cancel($response); $this->_cancel($response);
$this->_redirect('checkout/cart'); $this->_redirect('checkout/cart');
......
...@@ -133,7 +133,7 @@ class Validate3d extends \Magento\Framework\App\Action\Action ...@@ -133,7 +133,7 @@ class Validate3d extends \Magento\Framework\App\Action\Action
$order->getPayment()->setAdditionalInformation('3dActive', ''); $order->getPayment()->setAdditionalInformation('3dActive', '');
$this->_orderRepository->save($order); $this->_orderRepository->save($order);
$this->_redirect('checkout/onepage/success', ['utm_nooverride' => '1']); $this->_redirect('checkout/onepage/success', ['_query' => ['utm_nooverride' => '1']]);
} else { } else {
$order->addStatusHistoryComment(__('3D-secure validation was unsuccessful.'))->save(); $order->addStatusHistoryComment(__('3D-secure validation was unsuccessful.'))->save();
...@@ -162,7 +162,7 @@ class Validate3d extends \Magento\Framework\App\Action\Action ...@@ -162,7 +162,7 @@ class Validate3d extends \Magento\Framework\App\Action\Action
$this->_view->renderLayout(); $this->_view->renderLayout();
} }
} else { } else {
$this->_redirect('checkout/onepage/success/', ['utm_nooverride' => '1']); $this->_redirect('checkout/onepage/success', ['_query' => ['utm_nooverride' => '1']]);
} }
} }
......
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