Controller/ExpressCheckoutDispatcher.php
protected function getUserShippingCountryId($user)
    {
        if ($user->getSelectedAddressId() && $user->getSelectedAddress()) {
            $countryId = $user->getSelectedAddress()->oxaddress__oxcountryid->value;
        } else {
            $countryId = $user->oxuser__oxcountryid->value;
        }

        return $countryId;
    }
protected function getUserShippingCountryId($user)
    {
        if ($user->getSelectedAddressId() && $user->getSelectedAddress()) {
            $countryId = $user->getSelectedAddress()->oxaddress__oxcountryid->value;
        } else {
            $countryId = $user->oxuser__oxcountryid->value;
        }

        return $countryId;
    }
protected function getUserShippingCountryId ( $ user ) { if ( $ user -> getSelectedAddressId ( ) && $ user -> getSelectedAddress ( ) ) { $ countryId = $ user -> getSelectedAddress ( ) -> oxaddress__oxcountryid -> value ; } else { $ countryId = $ user -> oxuser__oxcountryid -> value ; } return $ countryId ; }
Returns user shipping address country id.

@param \OxidEsales\Eshop\Application\Model\User $user

@return string
Returns user shipping address country id .