/**
  * Country specific fields that don't fit in the array above
  *
  * @return void
  */
 private function _countryFields()
 {
     foreach (KiTT_CountryLogic::supportedCountries() as $country) {
         $flag = "<span class='klarna_flag_" . strtolower($country) . "'></span> ";
         define("{$this->_code}EID_{$country}_TITLE", "{$flag}{$country} " . $this->_translator->translate('KLARNA_ADMIN_MERCHANT_ID_TITLE'));
         define("{$this->_code}EID_{$country}_DESC", $this->_translator->translate('KLARNA_ADMIN_MERCHANT_ID_DESC'));
         define("{$this->_code}SECRET_{$country}_TITLE", "{$flag}{$country} " . $this->_translator->translate('KLARNA_ADMIN_SECRET_TITLE'));
         define("{$this->_code}SECRET_{$country}_DESC", $this->_translator->translate('KLARNA_ADMIN_SECRET_DESC'));
         if (KiTT_CountryLogic::needAGB($country)) {
             define("{$this->_code}AGB_LINK_{$country}_TITLE", "{$flag}{$country} " . $this->_translator->translate('KLARNA_ADMIN_TAC_TITLE'));
             define("{$this->_code}AGB_LINK_{$country}_DESC", $this->_translator->translate('KLARNA_ADMIN_TAC_DESC'));
         }
     }
 }
 /**
  * Get the configuration array to be inserted into the database.
  *
  * @return array configuration array for specified payment option
  */
 private function _getConfigArray()
 {
     $configs = array(array('configuration_key' => "{$this->_module}STATUS", 'configuration_value' => 'true', 'configuration_group_id' => '6', 'sort_order' => '0', 'set_function' => 'xtc_cfg_select_option(array(\'true\', \'false\'), '), array('configuration_key' => "{$this->_module}LATESTVERSION", 'configuration_value' => 'true', 'configuration_group_id' => '6', 'sort_order' => '0', 'set_function' => 'xtc_cfg_select_option(array(\'true\', \'false\'), '), array('configuration_key' => "{$this->_module}ZONE", 'configuration_value' => '0', 'configuration_group_id' => '6', 'sort_order' => '2', 'use_function' => 'xtc_get_zone_class_title', 'set_function' => 'xtc_cfg_pull_down_zone_classes('), array('configuration_key' => "{$this->_module}ARTNO", 'configuration_value' => 'id', 'configuration_group_id' => '6', 'sort_order' => '8', 'set_function' => 'xtc_cfg_select_option(array(\'id\', \'model\'), '), array('configuration_key' => "{$this->_module}SORT_ORDER", 'configuration_value' => '0', 'configuration_group_id' => '6', 'sort_order' => '20'), array('configuration_key' => "{$this->_module}ORDER_STATUS_ID", 'configuration_value' => '0', 'configuration_group_id' => '6', 'sort_order' => '20', 'set_function' => 'xtc_cfg_pull_down_order_statuses(', 'use_function' => 'xtc_get_order_status_name'), array('configuration_key' => "{$this->_module}ORDER_STATUS_PENDING_ID", 'configuration_value' => $this->_newId, 'configuration_group_id' => '6', 'sort_order' => '11', 'set_function' => 'xtc_cfg_pull_down_order_statuses(', 'use_function' => 'xtc_get_order_status_name'), array('configuration_key' => "{$this->_module}LIVEMODE", 'configuration_value' => 'true', 'configuration_group_id' => '6', 'sort_order' => '21', 'set_function' => 'xtc_cfg_select_option(array(\'true\', \'false\'), '), array('configuration_key' => "{$this->_module}ALLOWED", 'configuration_value' => implode(',', KiTT_CountryLogic::supportedCountries()), 'configuration_group_id' => '6', 'sort_order' => '14'));
     foreach (KiTT_CountryLogic::supportedCountries() as $country) {
         $flags = "<span class='klarna_flag_" . strtolower($country) . "'></span>";
         $configs[] = array('configuration_key' => "{$this->_module}SECRET_{$country}", 'configuration_group_id' => '6', 'sort_order' => '3');
         $configs[] = array('configuration_key' => "{$this->_module}EID_{$country}", 'configuration_value' => '0', 'configuration_group_id' => '6', 'sort_order' => '1');
         if (KiTT_CountryLogic::needAGB($country)) {
             $configs[] = array('configuration_key' => "{$this->_module}AGB_LINK_{$country}", 'configuration_value' => 'http://', 'configuration_group_id' => '', 'sort_order' => '');
         }
     }
     return $configs;
 }