Skip to content

Commit

Permalink
Update Finish.php
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse authored Jan 9, 2023
1 parent 7560339 commit 9bcd05d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Controller/Checkout/Finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,8 @@ private function handlePin(string $hash, Order $order)
private function deactivateCart(Order $order, int $magOrderId, string $payOrderId)
{
# Make the cart inactive
$session = $this->checkoutSession;
if (empty($order)) {
$order = $this->getOrder($magOrderId, $payOrderId);
}
$session = $this->checkoutSession;

$this->checkSession($order, $payOrderId, $session);

$quote = $session->getQuote();
Expand Down

0 comments on commit 9bcd05d

Please sign in to comment.