Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #131 from heidelpay/MAGE2-108/change/create_order_…
Browse files Browse the repository at this point in the history
…from_push

(MAGE2-108) [change] push - dont create order fo pending transactions.
  • Loading branch information
Ryouzanpaku authored Feb 18, 2020
2 parents 32022d9 + d57be58 commit 3fc8723
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Controller/Index/Push.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3fc8723

Please sign in to comment.