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

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

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

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

        return $status;
    }
public function getSuggestStatus ( $ action ) { if ( is_null ( $ this -> getOrder ( ) ) ) { return ; } $ status = $ this -> getOrderPaymentStatusPaymentValid ( ) ; if ( is_null ( $ status ) ) { $ status = $ this -> getStatusByAction ( $ action ) ; } return $ status ; }
Returns order suggestion for payment status on given action and on given payment.

@param string $action - action with order payment: void, refund, capture, refund_partial, capture_partial

@return string|null
Returns order suggestion for payment status on given action and on given payment .