init_settings() public method

Init settings for gateways.
public init_settings ( )
 public function init_settings()
 {
     parent::init_settings();
     $options_to_import = array('iamport_user_code', 'iamport_rest_key', 'iamport_rest_secret', 'checkout_methods');
     foreach ($options_to_import as $key) {
         $this->settings[$key] = wskl_get_option($key);
     }
     $this->settings['enabled'] = wskl_yes_or_no(wskl_is_option_enabled('enable_sym_pg') && wskl_get_option('pg_agency') == 'iamport' && in_array($this->checkout_method, $this->settings['checkout_methods']));
 }
 public function init_settings()
 {
     parent::init_settings();
     $options_to_import = array('payapp_user_id', 'payapp_link_key', 'payapp_link_val', 'checkout_methods');
     foreach ($options_to_import as $key) {
         $this->settings[$key] = get_option(wskl_get_option_name($key));
     }
     $this->settings['enabled'] = wskl_yes_or_no(wskl_is_option_enabled('enable_sym_pg') && wskl_get_option('pg_agency') == 'payapp' && in_array($this->checkout_method, $this->get_option('checkout_methods')));
 }
	/**
	* extend parent method for initialising settings, so that new settings can receive defaults
	*/
	public function init_settings() {
		parent::init_settings();

		if (is_callable(array($this, 'get_form_fields'))) {
			$form_fields = $this->get_form_fields();
		}
		else {
			// WooCommerce 2.0.20 or earlier
			$form_fields = $this->form_fields;
		}

		if ($form_fields) {
			foreach ($form_fields as $key => $value) {
				if (!isset($this->settings[$key])) {
					$this->settings[$key] = isset($value['default']) ? $value['default'] : '';
				}
			}
		}
	}
 /**
  * Init the based settings array and our own properties.
  *
  * @access public
  */
 public function init_settings()
 {
     // Load the settings.
     parent::init_settings();
     // Get setting values.
     $this->enabled = $this->get_option('enabled');
     $this->title = $this->get_option('title');
     $this->description = $this->get_option('description');
     $this->account_address = $this->get_option('account_address');
     $this->debug = $this->get_option('debug');
 }