OrderBumpsController
in package
Table of Contents
Properties
- $path : mixed
Methods
- __construct() : mixed
- add_payment_gateways() : mixed
- initialize() : mixed
- maybe_force_save_payment_method() : bool
- get_payment_method_ids() : mixed
- has_post_purchase_bumps() : bool
- Check if there are displayable after checkout bumps that support one-click
Properties
$path
private
mixed
$path
Methods
__construct()
public
__construct(mixed $path) : mixed
Parameters
- $path : mixed
add_payment_gateways()
public
add_payment_gateways(mixed $supported_gateways) : mixed
Parameters
- $supported_gateways : mixed
initialize()
public
initialize() : mixed
maybe_force_save_payment_method()
public
maybe_force_save_payment_method(bool $force_save, WC_Order|null $order[, AbstractGateway $payment_method = null ]) : bool
Parameters
- $force_save : bool
-
Whether to force save.
- $order : WC_Order|null
-
The WooCommerce order.
- $payment_method : AbstractGateway = null
-
The payment method.
Return values
boolget_payment_method_ids()
private
get_payment_method_ids() : mixed
has_post_purchase_bumps()
Check if there are displayable after checkout bumps that support one-click
private
has_post_purchase_bumps(WC_Payment_Gateway_Stripe $payment_method) : bool
Parameters
- $payment_method : WC_Payment_Gateway_Stripe
-
The payment method.