Exemple #1
0
 /**
  * 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();
 }
Exemple #2
0
 public function canUseCheckout()
 {
     if ($this->getIssuerList() && parent::canUseCheckout()) {
         return true;
     } else {
         return false;
     }
 }
Exemple #3
0
 /**
  * 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);
 }