/** * To check billing country is allowed for the payment method * * @return bool */ public function canUseForCountry($country) { $allowedCountries = Zitec_Dpd_Model_Payment_Cashondelivery_Source_Country::getAllAllowedCountries(); $canUseForCountry = parent::canUseForCountry($country) && (!$allowedCountries || in_array($country, $allowedCountries)); return $canUseForCountry ? true : false; }