src/ShopBundle/objects/db/TShopPaymentMethod.class.php
protected function checkUserBillingCountry(TdbDataExtranetUser $oUser)
    {
        $bIsValidBillingCountry = false;
        $aShippingCountryRestriction = $this->getPaymentMethodDataAccess()->getBillingCountryIds($this->id);
        if (count($aShippingCountryRestriction) > 0) {
            $oBillingAddress = $oUser->GetBillingAddress();
            if (in_array($oBillingAddress->fieldDataCountryId, $aShippingCountryRestriction)) {
                $bIsValidBillingCountry = true;
            }
        } else {
            $bIsValidBillingCountry = true;
        }

        return $bIsValidBillingCountry;
    }
protected function checkUserBillingCountry(TdbDataExtranetUser $oUser)
    {
        $bIsValidBillingCountry = false;
        $aShippingCountryRestriction = $this->getPaymentMethodDataAccess()->getBillingCountryIds($this->id);
        if (count($aShippingCountryRestriction) > 0) {
            $oBillingAddress = $oUser->GetBillingAddress();
            if (in_array($oBillingAddress->fieldDataCountryId, $aShippingCountryRestriction)) {
                $bIsValidBillingCountry = true;
            }
        } else {
            $bIsValidBillingCountry = true;
        }

        return $bIsValidBillingCountry;
    }
protected function checkUserBillingCountry ( TdbDataExtranetUser $ oUser ) { $ bIsValidBillingCountry = false ; $ aShippingCountryRestriction = $ this -> getPaymentMethodDataAccess ( ) -> getBillingCountryIds ( $ this -> id ) ; if ( count ( $ aShippingCountryRestriction ) > 0 ) { $ oBillingAddress = $ oUser -> GetBillingAddress ( ) ; if ( in_array ( $ oBillingAddress -> fieldDataCountryId , $ aShippingCountryRestriction ) ) { $ bIsValidBillingCountry = true ; } } else { $ bIsValidBillingCountry = true ; } return $ bIsValidBillingCountry ; }
check billing country.

@param TdbDataExtranetUser $oUser

@return bool
check billing country .