public function getPayoneConfig() { $payone_config = new Payone_Config(); $payone_config->setValue('api/default/protocol/loggers/Payone_Protocol_Logger_ModifiedLog/mode', 'api'); $payone_config->setValue('api/default/protocol/loggers/Payone_Protocol_Logger_Log4php/filename', DIR_FS_LOG . 'payone_sdk_api.log'); $payone_config->setValue('api/default/protocol/loggers/Payone_Protocol_Logger_Log4php/max_file_size', '5MB'); $payone_config->setValue('transaction_status/default/protocol/loggers/Payone_Protocol_Logger_Log4php/filename', DIR_FS_LOG . 'payone_sdk_transaction.log'); $payone_config->setValue('transaction_status/default/protocol/loggers/Payone_Protocol_Logger_ModifiedLog/mode', 'transactions'); return $payone_config; }
/** * @return Payone_Config */ protected function getConfig() { if ($this->config === null) { // Default config: $this->config = new Payone_Config(); // Set Magento logger configuration: $this->config->setValue('api/default/protocol/loggers', $this->getConfigApiLogger()); $this->config->setValue('transaction_status/default/protocol/loggers', $this->getConfigTransactionStatusLogger()); $this->config->setValue('transaction_status/validator/proxy/enabled', $this->getConfigProxyMode()); if ($this->helper()->isCompilerEnabled()) { $this->config->setValue('api/default/mapper/currency/currency_properties', $this->getLibCurrencyProperties()); } } return $this->config; }