Model/PaymentValidator.php
protected function checkUserGroup()
    {
        $isValid = true;

        $payPalPayment = $this->getPayment();
        $groups = $payPalPayment->getGroups();

        if ($groups && $groups->count() > 0) {
            $isValid = $this->isUserAssignedToGroup($groups);
        }

        return $isValid;
    }
protected function checkUserGroup()
    {
        $isValid = true;

        $payPalPayment = $this->getPayment();
        $groups = $payPalPayment->getGroups();

        if ($groups && $groups->count() > 0) {
            $isValid = $this->isUserAssignedToGroup($groups);
        }

        return $isValid;
    }
protected function checkUserGroup ( ) { $ isValid = true ; $ payPalPayment = $ this -> getPayment ( ) ; $ groups = $ payPalPayment -> getGroups ( ) ; if ( $ groups && $ groups -> count ( ) > 0 ) { $ isValid = $ this -> isUserAssignedToGroup ( $ groups ) ; } return $ isValid ; }
Checks if user belongs group that is assigned to payment
If payment does not have any groups assigned returns true

@return bool
Checks if user belongs group that is assigned to payment If payment does not have any groups assigned returns true