WC_Stripe_Account_Settings
extends WC_Stripe_Settings_API
in package
Class WC_Stripe_Account_Settings
Tags
Table of Contents
Constants
- DEFAULT_ACCOUNT_SETTINGS = array('account_id' => '', 'country' => '', 'default_currency' => '', 'via_connect' => \false)
Properties
- $id : mixed
- $tab_title : mixed
- $admin_output : mixed
- $previous_settings : mixed
Methods
- __construct() : mixed
- admin_nav_tab() : mixed
- admin_options() : mixed
- connect_settings() : mixed
- connection_test_success() : mixed
- delete_account_settings() : mixed
- display_errors() : mixed
- Display admin error messages.
- generate_button_demo_html() : mixed
- generate_description_html() : mixed
- generate_multi_select_countries_html() : mixed
- generate_multiselect_html() : mixed
- generate_paragraph_html() : mixed
- generate_stripe_button_html() : mixed
- get_account_country() : mixed
- get_account_currency() : string
- get_account_id() : mixed
- get_custom_attribute_html() : mixed
- get_prefix() : mixed
- get_stripe_documentation_url() : mixed
- has_completed_connect_process() : mixed
- hooks() : mixed
- is_active() : mixed
- localize_settings() : mixed
- output_settings_nav() : mixed
- post_api_update() : mixed
- pre_api_update() : mixed
- process_admin_options() : mixed
- Added override to provide more control on which fields are saved and which are skipped.
- save_account_settings() : mixed
- validate_multi_select_countries_field() : mixed
Constants
DEFAULT_ACCOUNT_SETTINGS
public
mixed
DEFAULT_ACCOUNT_SETTINGS
= array('account_id' => '', 'country' => '', 'default_currency' => '', 'via_connect' => \false)
Properties
$id
public
mixed
$id
= 'stripe_account'
$tab_title
protected
mixed
$tab_title
$admin_output
private
mixed
$admin_output
= \false
$previous_settings
private
mixed
$previous_settings
= array()
Methods
__construct()
public
__construct() : mixed
admin_nav_tab()
public
admin_nav_tab(mixed $tabs) : mixed
Parameters
- $tabs : mixed
admin_options()
public
admin_options() : mixed
connect_settings()
public
connect_settings(object $response) : mixed
Parameters
- $response : object
connection_test_success()
public
connection_test_success(mixed $mode) : mixed
Parameters
- $mode : mixed
delete_account_settings()
public
delete_account_settings() : mixed
display_errors()
Display admin error messages.
public
display_errors() : mixed
generate_button_demo_html()
public
generate_button_demo_html(mixed $key, mixed $data) : mixed
Parameters
- $key : mixed
- $data : mixed
generate_description_html()
public
generate_description_html(mixed $key, mixed $data) : mixed
Parameters
- $key : mixed
- $data : mixed
generate_multi_select_countries_html()
public
generate_multi_select_countries_html(mixed $key, mixed $data) : mixed
Parameters
- $key : mixed
- $data : mixed
generate_multiselect_html()
public
generate_multiselect_html(mixed $key, mixed $data) : mixed
Parameters
- $key : mixed
- $data : mixed
generate_paragraph_html()
public
generate_paragraph_html(mixed $key, mixed $data) : mixed
Parameters
- $key : mixed
- $data : mixed
generate_stripe_button_html()
public
generate_stripe_button_html(mixed $key, mixed $data) : mixed
Parameters
- $key : mixed
- $data : mixed
get_account_country()
public
get_account_country([mixed $mode = 'live' ]) : mixed
Parameters
- $mode : mixed = 'live'
get_account_currency()
public
get_account_currency([mixed $mode = 'live' ]) : string
Parameters
- $mode : mixed = 'live'
Return values
stringget_account_id()
public
get_account_id([mixed $mode = 'live' ]) : mixed
Parameters
- $mode : mixed = 'live'
get_custom_attribute_html()
public
get_custom_attribute_html(mixed $attribs) : mixed
Parameters
- $attribs : mixed
get_prefix()
public
get_prefix() : mixed
get_stripe_documentation_url()
public
get_stripe_documentation_url() : mixed
has_completed_connect_process()
public
has_completed_connect_process([mixed $mode = '' ]) : mixed
Parameters
- $mode : mixed = ''
hooks()
public
hooks() : mixed
is_active()
public
is_active(mixed $key) : mixed
Parameters
- $key : mixed
localize_settings()
public
localize_settings() : mixed
output_settings_nav()
public
output_settings_nav() : mixed
post_api_update()
public
post_api_update() : mixed
pre_api_update()
public
pre_api_update() : mixed
process_admin_options()
Added override to provide more control on which fields are saved and which are skipped.
public
process_admin_options() : mixed
This plugin has custom setting fields like "paragraph" that are for info display only and not for saving.
Tags
save_account_settings()
public
save_account_settings(string $account_id[, mixed $mode = 'live' ][, mixed $is_connect = false ]) : mixed
Parameters
- $account_id : string
- $mode : mixed = 'live'
- $is_connect : mixed = false
validate_multi_select_countries_field()
public
validate_multi_select_countries_field(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed