public function __construct() { $visible = Mage::getStoreConfig("payment/adyen_elv/visible_type"); if ($visible == "backend") { $this->_canUseCheckout = false; $this->_canUseInternal = true; } else { if ($visible == "frontend") { $this->_canUseCheckout = true; $this->_canUseInternal = false; } else { $this->_canUseCheckout = true; $this->_canUseInternal = true; } } parent::__construct(); }
public function __construct() { // check if this is adyen_cc payment method because this function is as well used for oneclick payments if ($this->getCode() == "adyen_cash") { $visible = Mage::getStoreConfig("payment/adyen_cash/visible_type"); if ($visible == "backend") { $this->_canUseCheckout = false; $this->_canUseInternal = true; } else { if ($visible == "frontend") { $this->_canUseCheckout = true; $this->_canUseInternal = false; } else { $this->_canUseCheckout = true; $this->_canUseInternal = true; } } } parent::__construct(); }