/** * Returns the value for the given configuration key * * @param string $key Configuration key name * @param mixed $default Default value if no configuration is found * @return mixed Configuration value */ protected function getValue($key, $default = null) { switch ($key) { case 'type': return 'Mollie'; } return parent::getValue($key, $default); }
/** * Returns the value for the given configuration key * * @param string $key Configuration key name * @param mixed $default Default value if no configuration is found * @return mixed Configuration value */ protected function getValue($key, $default = null) { switch ($key) { case 'type': return 'AuthorizeNet_SIM'; } return parent::getValue($key, $default); }
/** * Returns the value for the given configuration key * * @param string $key Configuration key name * @param mixed $default Default value if no configuration is found * @return mixed Configuration value */ protected function getValue($key, $default = null) { switch ($key) { case 'type': return 'CardSave'; case 'onsite': return true; } return parent::getValue($key, $default); }
/** * Initializes the service provider object. * * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects * @param \Aimeos\MShop\Service\Item\Iface $serviceItem Service item with configuration for the provider */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Service\Item\Iface $serviceItem) { parent::__construct($context, $serviceItem); $year = date('Y'); $this->feConfig['novalnetcredit.year']['default'] = array($year, $year + 1, $year + 2, $year + 3, $year + 4, $year + 5, $year + 6, $year + 7); }