Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Sep 2, 2024
1 parent 4c1255e commit 07caffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Client/Orders/Processors/SuccessfulPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ public function process(OrderInterface $order, Order $mollieOrder, string $type,
$this->sendOrderEmails($order);
}

if ($mollieOrder->amountCaptured !== null && $mollieOrder->amountCaptured->value != '0.00') {
$this->processCaptures->execute($order, $mollieOrder->captures());
if ($payment && $mollieOrder->amountCaptured !== null && $mollieOrder->amountCaptured->value != '0.00') {
$this->processCaptures->execute($order, $payment->captures());
}

$result = ['success' => true, 'status' => $mollieOrder->status, 'order_id' => $orderId, 'type' => $type];
Expand Down

0 comments on commit 07caffa

Please sign in to comment.