public function getConfigData($fieldToLookFor, $store = null) { $returnFromThisModel = Mage::getStoreConfig('payment/CreditCard/' . $fieldToLookFor); if (is_null($returnFromThisModel)) { $returnFromThisModel = parent::getConfigData($fieldToLookFor, $store); } return $returnFromThisModel; }
/** * Override getting config data for the cctype configuration. Due to the * special requirements for what types are actually available (must be * mapped ROM tender type), when requesting configured cctypes, get the types * that are actually available. * @param string $field * @param int|string|null|Mage_Core_Model_Store $storeId * @return mixed */ public function getConfigData($field, $storeId = null) { if ($field === 'cctypes') { return implode(',', array_keys($this->_helper->getAvailableCardTypes())); } return parent::getConfigData($field, $storeId); }
/** * Custom getter for payment configuration * * @param string $field * @param int $storeId * @return mixed */ public function getConfigData($field, $storeId = null) { $value = null; switch ($field) { case 'url': $value = $this->getTransactionUrl(); break; default: $value = parent::getConfigData($field, $storeId); } return $value; }