Model/OrderPaymentStatusCalculator.php
public function getStatus()
    {
        if (is_null($this->getOrder())) {
            return;
        }

        $status = $this->getOrderPaymentStatusFinal();

        if (is_null($status)) {
            $status = $this->getOrderPaymentStatusPaymentValid();
        }
        if (is_null($status)) {
            $status = $this->getOrderPaymentStatusPayments();
        }

        return $status;
    }
public function getStatus()
    {
        if (is_null($this->getOrder())) {
            return;
        }

        $status = $this->getOrderPaymentStatusFinal();

        if (is_null($status)) {
            $status = $this->getOrderPaymentStatusPaymentValid();
        }
        if (is_null($status)) {
            $status = $this->getOrderPaymentStatusPayments();
        }

        return $status;
    }
public function getStatus ( ) { if ( is_null ( $ this -> getOrder ( ) ) ) { return ; } $ status = $ this -> getOrderPaymentStatusFinal ( ) ; if ( is_null ( $ status ) ) { $ status = $ this -> getOrderPaymentStatusPaymentValid ( ) ; } if ( is_null ( $ status ) ) { $ status = $ this -> getOrderPaymentStatusPayments ( ) ; } return $ status ; }
Returns order payment status which should be set after order creation or IPN.

@return string|null
Returns order payment status which should be set after order creation or IPN .