/** * Can be used in regular checkout * * @return bool */ public function canUseCheckout() { if (Mage::getStoreConfigFlag('payment/hosted_pro/active') && !Mage::getStoreConfigFlag('payment/hosted_pro/display_ec')) { return false; } return parent::canUseCheckout(); }
public function canUseCheckout() { if ($this->getIssuerList() && parent::canUseCheckout()) { return true; } else { return false; } }
/** * Check and prepare payment method model * * @param Mage_Payment_Model_Method_Abstract $method * @return bool */ protected function _canUseMethod($method) { return $method instanceof Mage_Payment_Model_Method_Abstract && $method->canUseCheckout() && $method->isAvailable($this->getQuote()) && parent::_canUseMethod($method); }