diff --git a/src/Livewire/Checkout.php b/src/Livewire/Checkout.php index 4362457..709da18 100644 --- a/src/Livewire/Checkout.php +++ b/src/Livewire/Checkout.php @@ -299,8 +299,13 @@ public function onChoosePayment($code): void $this->checkoutForm->getField('payment')->value = $code; $this->orderManager->applyCurrentPaymentFee($payment->code); - if ($this->order->payment !== $code) { - $this->order->updateQuietly(['payment' => $code]); + $cartTotal = $this->cartManager->getCart()->total(); + + if ($this->order->payment !== $code || $this->order->order_total !== $cartTotal) { + $this->order->updateQuietly([ + 'payment' => $code, + 'order_total' => $cartTotal, + ]); } $this->order = null;