public function isAvailable($quote = null) { if ($quote && $quote->getBaseGrandTotal() < $this->_minOrderTotal) { return false; } return $this->getConfigData('api_key', $quote ? $quote->getStoreId() : null) && parent::isAvailable($quote); }
/** * Check if we're on a secure page and run * the parent verification * * @param Mage_Sales_Model_Quote|null $quote * * @return bool */ public function isAvailable($quote = null) { $isSecure = (bool) Mage::app()->getStore()->isCurrentlySecure(); if (!$isSecure) { return false; } return parent::isAvailable($quote); }
/** * Check whether payment method can be used * * @param Mage_Sales_Model_Quote * @return bool */ public function isAvailable($quote = null) { $storeId = Mage::app()->getStore($this->getStore())->getId(); $config = Mage::getModel('paypal/config')->setStoreId($storeId); if (parent::isAvailable($quote) && $config->isMethodAvailable($this->getCode())) { return true; } return false; }
/** * Check whether payment method can be used * @param Mage_Sales_Model_Quote * @return bool */ public function isAvailable($quote = null) { if (parent::isAvailable($quote) && $this->_pro->getConfig()->isMethodAvailable()) { return true; } return false; }
/** * Check whether payment method can be used * * This method is available only if Payment bridge is on. So we must check this own method's * settings and pbridge's settings * * @return bool */ public function isAvailable($quote = null) { $storeId = $quote ? $quote->getStoreId() : null; return Mage::helper('enterprise_pbridge')->isEnabled($storeId) && parent::isAvailable(); }
/** * Payment method available? */ public function isAvailable($quote = null) { if ($this->getConfigData('active') && parent::isAvailable()) { return true; } return false; }