Model/PaymentValidator.php
public function isPaymentValid()
    {
        $isValid = $this->isPaymentActive();

        if ($isValid && !is_null($this->getPrice())) {
            $isValid = $this->checkPriceRange() && $this->checkMinOrderPrice();
        }

        $user = $this->getUser();
        if ($isValid && $user && $user->hasAccount()) {
            $isValid = $this->checkUserGroup();
        }

        if ($isValid && $user && $this->getCheckCountry()) {
            $isValid = $this->checkUserCountry();
        }

        return $isValid;
    }
public function isPaymentValid()
    {
        $isValid = $this->isPaymentActive();

        if ($isValid && !is_null($this->getPrice())) {
            $isValid = $this->checkPriceRange() && $this->checkMinOrderPrice();
        }

        $user = $this->getUser();
        if ($isValid && $user && $user->hasAccount()) {
            $isValid = $this->checkUserGroup();
        }

        if ($isValid && $user && $this->getCheckCountry()) {
            $isValid = $this->checkUserCountry();
        }

        return $isValid;
    }
public function isPaymentValid ( ) { $ isValid = $ this -> isPaymentActive ( ) ; if ( $ isValid && ! is_null ( $ this -> getPrice ( ) ) ) { $ isValid = $ this -> checkPriceRange ( ) && $ this -> checkMinOrderPrice ( ) ; } $ user = $ this -> getUser ( ) ; if ( $ isValid && $ user && $ user -> hasAccount ( ) ) { $ isValid = $ this -> checkUserGroup ( ) ; } if ( $ isValid && $ user && $ this -> getCheckCountry ( ) ) { $ isValid = $ this -> checkUserCountry ( ) ; } return $ isValid ; }
Checks if payment is valid according to config, user and basket amount.

@return boolean
Checks if payment is valid according to config user and basket amount .