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

        $payPalPayment = $this->getPayment();

        $countries = $payPalPayment->getCountries();
        if ($countries) {
            $isValid = false;
            foreach ($countries as $countryId) {
                if ($countryId === $this->getShippingCountryId()) {
                    $isValid = true;
                    break;
                }
            }
        }

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

        $payPalPayment = $this->getPayment();

        $countries = $payPalPayment->getCountries();
        if ($countries) {
            $isValid = false;
            foreach ($countries as $countryId) {
                if ($countryId === $this->getShippingCountryId()) {
                    $isValid = true;
                    break;
                }
            }
        }

        return $isValid;
    }
protected function checkUserCountry ( ) { $ isValid = true ; $ payPalPayment = $ this -> getPayment ( ) ; $ countries = $ payPalPayment -> getCountries ( ) ; if ( $ countries ) { $ isValid = false ; foreach ( $ countries as $ countryId ) { if ( $ countryId === $ this -> getShippingCountryId ( ) ) { $ isValid = true ; break ; } } } return $ isValid ; }
Checks if user country is among payment countries
If payment countries are not set returns true

@return bool
Checks if user country is among payment countries If payment countries are not set returns true