AbstractGateway
extends WC_Payment_Gateway
in package
uses
FeaturesTrait
AbstractYes
Table of Contents
Properties
- $client : StripeClient
- $payment_controller : WC_Stripe_Payment_Intent
- $assets : AssetsApi
- $payment_method_id : string
- $payment_method_type : mixed
Methods
- __construct() : mixed
- get_add_payment_method_script_handles() : mixed
- get_cart_script_handles() : array<string|int, mixed>
- get_checkout_script_handles() : array<string|int, mixed>
- get_express_checkout_script_handles() : array<string|int, mixed>
- get_minicart_script_handles() : array<string|int, mixed>
- get_new_payment_method_option_html() : mixed
- get_payment_method_data() : array<string|int, mixed>
- get_payment_method_type() : string
- Returns the payment method type for the payment method.
- get_product_script_handles() : array<string|int, mixed>
- get_saved_payment_method_option_html() : string
- get_tokens() : mixed
- init_supports() : mixed
- initialize() : mixed
- is_cart_section_enabled() : mixed
- is_express_checkout_enabled() : mixed
- is_minicart_section_enabled() : mixed
- is_product_section_enabled() : bool
- process_zero_total_order() : array<string|int, mixed>
- saved_payment_methods() : mixed
- set_payment_method_id() : void
- should_use_saved_payment_method() : bool
- Returns true if the customer is using a saved payment method in the request.
Properties
$client
public
StripeClient
$client
$payment_controller
public
WC_Stripe_Payment_Intent
$payment_controller
$assets
protected
AssetsApi
$assets
$payment_method_id
protected
string
$payment_method_id
$payment_method_type
protected
mixed
$payment_method_type
Methods
__construct()
public
__construct(WC_Stripe_Payment_Intent $payment_controller, StripeClient $client, AssetsApi $assets) : mixed
Parameters
- $payment_controller : WC_Stripe_Payment_Intent
- $client : StripeClient
- $assets : AssetsApi
get_add_payment_method_script_handles()
public
get_add_payment_method_script_handles() : mixed
get_cart_script_handles()
public
get_cart_script_handles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>get_checkout_script_handles()
public
get_checkout_script_handles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>get_express_checkout_script_handles()
public
get_express_checkout_script_handles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>get_minicart_script_handles()
public
get_minicart_script_handles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>get_new_payment_method_option_html()
public
get_new_payment_method_option_html() : mixed
get_payment_method_data()
public
get_payment_method_data() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>get_payment_method_type()
Returns the payment method type for the payment method.
public
get_payment_method_type() : string
Return values
stringget_product_script_handles()
public
get_product_script_handles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>get_saved_payment_method_option_html()
public
get_saved_payment_method_option_html(WC_Payment_Token_Stripe $token[, mixed $checked = true ]) : string
Parameters
- $token : WC_Payment_Token_Stripe
- $checked : mixed = true
Return values
stringget_tokens()
public
get_tokens() : mixed
init_supports()
public
init_supports() : mixed
initialize()
public
initialize() : mixed
is_cart_section_enabled()
public
is_cart_section_enabled() : mixed
is_express_checkout_enabled()
public
is_express_checkout_enabled() : mixed
is_minicart_section_enabled()
public
is_minicart_section_enabled() : mixed
is_product_section_enabled()
public
is_product_section_enabled(mixed $product) : bool
Parameters
- $product : mixed
Tags
Return values
boolprocess_zero_total_order()
public
process_zero_total_order(WC_Order $order) : array<string|int, mixed>
Parameters
- $order : WC_Order
Return values
array<string|int, mixed>saved_payment_methods()
public
saved_payment_methods() : mixed
set_payment_method_id()
public
set_payment_method_id(mixed $value) : void
Parameters
- $value : mixed
should_use_saved_payment_method()
Returns true if the customer is using a saved payment method in the request.
public
should_use_saved_payment_method() : bool