Know if an Order is Paid When State is ‘Processing’ in Magento

ce-1.6.2.0orderspaymentstate

I'm running Magento 1.6.2.

I need to determine if an order is paid. If yes, I generate some XML data for export.
There is many cases in the Magento order/payment/shipment workflow.

My first guess is when the attribute "state" of the order is defined as "processing", but I'm not sure because of the large amount of possibilities in this workflow. May be this case is not covering all the possibilities …

Am I right with that ?

Best Answer

You can call $order->getBaseTotalDue(). If this is 0, the order is fully paid.