Skip to content

Commit

Permalink
Merge pull request #31 from Vendic/bugfix/m226-pending-payment
Browse files Browse the repository at this point in the history
Magento 2.2.6 force paid order to processing
  • Loading branch information
Andy Pieters authored Oct 5, 2018
2 parents 2ed0bf8 + c77216b commit 9a836b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Controller/Checkout/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ public function execute() {
$paidAmount, $skipFraudDetection
);

// Force order state/status to processing
$order->setState(Order::STATE_PROCESSING);
$order->setStatus(Order::STATE_PROCESSING);

$this->orderRepository->save( $order );

// notify customer
Expand Down

0 comments on commit 9a836b0

Please sign in to comment.