WC_Connect_Service_Settings_Store::get_account_settings PHP Method

get_account_settings() public method

Gets connect account settings (e.g. payment method)
public get_account_settings ( ) : array
return array
        public function get_account_settings()
        {
            $default = array('selected_payment_method_id' => 0);
            return get_option('wc_connect_account_settings', $default);
        }

Usage Example

 /**
  * Mutate-able settings bootstrapped to the view -- should be
  * identical to what is returned by the WC_REST_Connect_Settings_Controller
  * GET /connect/settings endpoint (see callbackURL below)
  */
 public function get_form_data()
 {
     return $this->service_settings_store->get_account_settings();
 }