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

Merge pull request #189 from Adyen/develop-rik-new

don't execute 3D logic if 3D secure payment was already successful
parents 30771b3d ce1411b6
......@@ -89,10 +89,11 @@ class Validate3d extends \Magento\Framework\App\Action\Action
if ($order->getPayment()) {
$active = $order->getPayment()->getAdditionalInformation('3dActive');
$success = $order->getPayment()->getAdditionalInformation('3dSuccess');
}
// check if 3D secure is active. If not just go to success page
if ($active) {
if ($active && $success != true) {
$this->_adyenLogger->addAdyenResult("3D secure is active");
......@@ -131,6 +132,7 @@ class Validate3d extends \Magento\Framework\App\Action\Action
$order->addStatusHistoryComment(__('3D-secure validation was successful'))->save();
// set back to false so when pressed back button on the success page it will reactivate 3D secure
$order->getPayment()->setAdditionalInformation('3dActive', '');
$order->getPayment()->setAdditionalInformation('3dSuccess', true);
$this->_orderRepository->save($order);
$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