public function addHistory($event)
    {
        /** @var $order Mage_Sales_Model_Order */
        $order = $event->getOrder();
        if ($order && $order->getPayment()) {
            if ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Directdeposit::CODE) {
                $order->addStatusHistoryComment('Order placed with Direct Deposit')->setIsCustomerNotified(false);
            } elseif ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Bpay::CODE) {
                $order->addStatusHistoryComment('Order placed with BPay')->setIsCustomerNotified(false);
            }
        }
    }
public function addHistory($event)
    {
        /** @var $order Mage_Sales_Model_Order */
        $order = $event->getOrder();
        if ($order && $order->getPayment()) {
            if ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Directdeposit::CODE) {
                $order->addStatusHistoryComment('Order placed with Direct Deposit')->setIsCustomerNotified(false);
            } elseif ($order->getPayment()->getMethod() == Fontis_Australia_Model_Payment_Bpay::CODE) {
                $order->addStatusHistoryComment('Order placed with BPay')->setIsCustomerNotified(false);
            }
        }
    }
public function addHistory ( $ event ) { /** @var $order Mage_Sales_Model_Order */ $ order = $ event -> getOrder ( ) ; if ( $ order && $ order -> getPayment ( ) ) { if ( $ order -> getPayment ( ) -> getMethod ( ) == Fontis_Australia_Model_Payment_Directdeposit :: CODE ) { $ order -> addStatusHistoryComment ( 'Order placed with Direct Deposit' ) -> setIsCustomerNotified ( false ) ; } elseif ( $ order -> getPayment ( ) -> getMethod ( ) == Fontis_Australia_Model_Payment_Bpay :: CODE ) { $ order -> addStatusHistoryComment ( 'Order placed with BPay' ) -> setIsCustomerNotified ( false ) ; } } }
Adds a history entry to orders placed using AU direct deposit or BPay.

@listen checkout_type_onepage_save_order
@param Varien_Event_Observer $event
Adds a history entry to orders placed using AU direct deposit or BPay .