From d57be585b1e7548b14031cd23cbae2ab4fdac683 Mon Sep 17 00:00:00 2001 From: "David.Owusu" Date: Tue, 18 Feb 2020 16:50:45 +0100 Subject: [PATCH] (MAGE2-108) [change] push - dont create order fo pending transactions. --- Controller/Index/Push.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Controller/Index/Push.php b/Controller/Index/Push.php index f6ffd41c1bc..9702c8ead5b 100755 --- a/Controller/Index/Push.php +++ b/Controller/Index/Push.php @@ -183,8 +183,11 @@ public function execute() ); // Only process transactions that might potentially create new order, this includes receipts. - if ($pushResponse->isSuccess() && $this->_paymentHelper->isNewOrderType($paymentType)) { - + if ( + $pushResponse->isSuccess() && + !$pushResponse->isPending() && + $this->_paymentHelper->isNewOrderType($paymentType) + ) { $transactionId = $pushResponse->getIdentification()->getTransactionId(); $order = $this->orderHelper->fetchOrder($transactionId); $quote = $this->quoteRepository->get($transactionId);