PaymentGateways
in package
Table of Contents
Properties
- $assets : mixed
Methods
- __construct() : mixed
- add_data() : mixed
- add_new_order_data() : mixed
- add_scripts() : mixed
- add_supported_gateways() : mixed
- get_subscription_gateways() : mixed
- get_wfocu_payment_gateway() : bool|WFOCU_Gateway|WFOCU_Gateways
- initialize_gateways() : mixed
- maybe_set_save_payment_method() : bool
- maybe_setup_upsell() : mixed
- Maybe setup the WooFunnels upsell if the charge has not been captured.
- process_refund_success() : void
- update_subscription_meta() : void
- get_charges_for_upsell() : mixed
- get_payment_gateways() : mixed
- initialize() : mixed
- is_supported_gateway() : mixed
Properties
$assets
private
mixed
$assets
Methods
__construct()
public
__construct(AssetsApi $assets) : mixed
Parameters
- $assets : AssetsApi
add_data()
public
add_data(mixed $data) : mixed
Parameters
- $data : mixed
add_new_order_data()
public
add_new_order_data(WC_Order $order) : mixed
Parameters
- $order : WC_Order
add_scripts()
public
add_scripts() : mixed
add_supported_gateways()
public
add_supported_gateways(mixed $gateways) : mixed
Parameters
- $gateways : mixed
get_subscription_gateways()
public
get_subscription_gateways(mixed $gateways) : mixed
Parameters
- $gateways : mixed
get_wfocu_payment_gateway()
public
get_wfocu_payment_gateway(mixed $id) : bool|WFOCU_Gateway|WFOCU_Gateways
Parameters
- $id : mixed
Return values
bool|WFOCU_Gateway|WFOCU_Gatewaysinitialize_gateways()
public
initialize_gateways() : mixed
maybe_set_save_payment_method()
public
maybe_set_save_payment_method(bool $bool, WC_Order $order[, WC_Payment_Gateway_Stripe $payment_method = null ]) : bool
Parameters
- $bool : bool
- $order : WC_Order
- $payment_method : WC_Payment_Gateway_Stripe = null
Return values
boolmaybe_setup_upsell()
Maybe setup the WooFunnels upsell if the charge has not been captured.
public
maybe_setup_upsell(Charge $charge, WC_Order $order) : mixed
Parameters
- $charge : Charge
- $order : WC_Order
process_refund_success()
public
process_refund_success(WC_Order $order) : void
Parameters
- $order : WC_Order
update_subscription_meta()
public
update_subscription_meta(WC_Subscription $subscription, string $product_hash, WC_Order $order) : void
Parameters
- $subscription : WC_Subscription
- $product_hash : string
- $order : WC_Order
get_charges_for_upsell()
private
get_charges_for_upsell(mixed $order) : mixed
Parameters
- $order : mixed
get_payment_gateways()
private
get_payment_gateways() : mixed
initialize()
private
initialize() : mixed
is_supported_gateway()
private
is_supported_gateway(mixed $id) : mixed
Parameters
- $id : mixed