0

What the best way of checking if an order has been fully paid?

I typically would do

$order = $this->orderRepository->get($orderId);
if ($order->getBaseTotalDue() > 0) {
   //not fully paid
}

However as per https://github.com/magento/magento2/issues/28853 I have been burnt by Magento as it told me the order was fully paid however we hadn't received the payment

Therefore I want to see if there is a better way of checking if the order has been fully paid

As a note, I was using Paypal Express as the payment method and I am using Magento 2.3.5-p1

Cheers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.