init_settings() public method

Store all settings in a single database entry and make sure the $settings array is either the default or the settings stored in the database.
Since: 1.0.0
public init_settings ( )
 /**
  * Init settings for gateways.
  */
 public function init_settings()
 {
     parent::init_settings();
     $this->enabled = !empty($this->settings['enabled']) && 'yes' === $this->settings['enabled'] ? 'yes' : 'no';
 }