Model/OrderPaymentStatusCalculator.php
protected function getOrderPaymentStatusPaymentValid()
    {
        $status = null;
        $orderPayment = $this->getOrderPayment();
        if (isset($orderPayment) && !$orderPayment->getIsValid()) {
            $status = 'failed';
        }

        return $status;
    }
protected function getOrderPaymentStatusPaymentValid()
    {
        $status = null;
        $orderPayment = $this->getOrderPayment();
        if (isset($orderPayment) && !$orderPayment->getIsValid()) {
            $status = 'failed';
        }

        return $status;
    }
protected function getOrderPaymentStatusPaymentValid ( ) { $ status = null ; $ orderPayment = $ this -> getOrderPayment ( ) ; if ( isset ( $ orderPayment ) && ! $ orderPayment -> getIsValid ( ) ) { $ status = 'failed' ; } return $ status ; }
Returns order payment status by checking if set payment is valid.

@return string|null
Returns order payment status by checking if set payment is valid .