WC_Stripe_Product_Gateway_Option
in package
Tags
Table of Contents
Properties
- $id : string
- $payment_method : WC_Payment_Gateway_Stripe
- $product : WC_Product
- $settings : array<string|int, mixed>
Methods
- __construct() : mixed
- enabled() : mixed
- get_default_values() : array<string|int, mixed>
- Return default options build from the payment gateway's options.
- get_id() : mixed
- Return the ID of this product option.
- get_option() : mixed
- has_product() : bool
- init_settings() : mixed
- Initialize the settings.
- save() : mixed
- Save the settings
- set_option() : mixed
Properties
$id
private
string
$id
$payment_method
private
WC_Payment_Gateway_Stripe
$payment_method
$product
private
WC_Product
$product
$settings
private
array<string|int, mixed>
$settings
= array()
Methods
__construct()
public
__construct(int|WC_Product $product, WC_Payment_Gateway_Stripe $payment_method) : mixed
Parameters
- $product : int|WC_Product
- $payment_method : WC_Payment_Gateway_Stripe
enabled()
public
enabled() : mixed
get_default_values()
Return default options build from the payment gateway's options.
public
get_default_values() : array<string|int, mixed>
Return values
array<string|int, mixed>get_id()
Return the ID of this product option.
public
get_id() : mixed
get_option()
public
get_option(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
has_product()
public
has_product() : bool
Tags
Return values
boolinit_settings()
Initialize the settings.
public
init_settings() : mixed
save()
Save the settings
public
save() : mixed
set_option()
public
set_option(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed