Skip to content

Commit

Permalink
Merge pull request #194 from defenseoftheancients/fix-issue-192
Browse files Browse the repository at this point in the history
Fix: Order confirmation email was sent, but the field email_sent remains NULL
  • Loading branch information
Francois-Gomis authored Sep 9, 2024
2 parents 29d565e + 997a6ad commit ea36fa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Helpers/PaymentValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ public function processOrder(Order $order, AlmaPayment $almaPayment): void
$payment = $order->getPayment();
$this->addTransactionToPayment($payment, $order, $almaPayment);
$this->paymentProcessor->registerCaptureNotification($payment, $payment->getBaseAmountAuthorized());
$this->orderHelper->notify($order->getId());

// TODO : Paylater / PnX
$order = $this->addCommentToOrder($order, __('First instalment captured successfully'), $newStatus);
Expand All @@ -275,6 +274,8 @@ public function processOrder(Order $order, AlmaPayment $almaPayment): void
}
$this->orderHelper->save($order);
$this->inactiveQuoteById($order->getQuoteId());

$this->orderHelper->notify($order->getId());
}

/**
Expand Down

0 comments on commit ea36fa0

Please sign in to comment.