diff --git a/Model/TpayPayment.php b/Model/TpayPayment.php index 7928a31..42456bf 100755 --- a/Model/TpayPayment.php +++ b/Model/TpayPayment.php @@ -287,7 +287,7 @@ public function getCheckoutTotal() { $amount = (float) $this->getCheckout()->getQuote()->getBaseGrandTotal(); - if (!$amount) { + if (!$amount && $this->getCheckout()->getLastRealOrderId()) { $orderId = $this->getCheckout()->getLastRealOrderId(); $order = $this->orderRepository->getByIncrementId($orderId); $amount = $order->getBaseGrandTotal();