SubscriptionsController
-
since
-
4.0.0
Table of Contents
Properties
-
$context_handler
: ContextHandler
-
$payment_controller
: mixed
-
$registry
: PaymentGatewayRegistry
Methods
-
__construct()
: mixed
-
add_change_payment_method_query()
: mixed|string
-
add_subscription_payment_meta()
: array<string|int, mixed>
-
filter_message_gateways()
: array<string|int, AbstractGateway>
-
filter_shop_message_gateways()
: array<string|int, AbstractGateway>
-
get_shipping_packages()
: void
-
initialize()
: mixed
-
process_change_payment_method_redirect()
: array<string|int, mixed>
-
process_payment()
: array<string|int, mixed>|bool
-
register_gateways()
: mixed
-
should_save_payment_method()
: bool
-
show_save_payment_method()
: bool
-
is_change_payment_method_request()
: mixed
-
scheduled_subscription_payment()
: void
-
update_failing_payment_method()
: void
__construct()
public
__construct(PaymentController $payment_controller, ContextHandler $context_handler, PaymentGatewayRegistry $registry) : mixed
Parameters
-
$payment_controller
: PaymentController
-
-
$context_handler
: ContextHandler
-
-
$registry
: PaymentGatewayRegistry
-
add_change_payment_method_query()
public
add_change_payment_method_query(mixed $url, WC_Payment_Gateway_Stripe $gateway) : mixed|string
Parameters
-
$url
: mixed
-
-
$gateway
: WC_Payment_Gateway_Stripe
-
Return values
mixed|string
public
add_subscription_payment_meta(array<string|int, mixed> $payment_meta, WC_Subscription $subscription, AbstractGateway $integration) : array<string|int, mixed>
Parameters
-
$payment_meta
: array<string|int, mixed>
-
-
$subscription
: WC_Subscription
-
-
$integration
: AbstractGateway
-
Return values
array<string|int, mixed>
filter_message_gateways()
public
filter_message_gateways(array<string|int, AbstractGateway> $gateways, ContextHandler $context_handler) : array<string|int, AbstractGateway>
Parameters
-
$gateways
: array<string|int, AbstractGateway>
-
-
$context_handler
: ContextHandler
-
filter_shop_message_gateways()
public
filter_shop_message_gateways(array<string|int, AbstractGateway> $gateways, WC_Product $product) : array<string|int, AbstractGateway>
Parameters
-
$gateways
: array<string|int, AbstractGateway>
-
-
$product
: WC_Product
-
get_shipping_packages()
public
get_shipping_packages(mixed $packages) : void
Parameters
-
$packages
: mixed
-
initialize()
public
initialize() : mixed
process_change_payment_method_redirect()
public
process_change_payment_method_redirect(array<string|int, mixed> $result, WC_Payment_Gateway_Stripe $gateway, SetupIntent $setup_intent) : array<string|int, mixed>
Parameters
-
$result
: array<string|int, mixed>
-
-
$gateway
: WC_Payment_Gateway_Stripe
-
-
$setup_intent
: SetupIntent
-
Return values
array<string|int, mixed>
process_payment()
public
process_payment(mixed $result, WC_Order $order, AbstractGateway $payment_method) : array<string|int, mixed>|bool
Parameters
-
$result
: mixed
-
-
$order
: WC_Order
-
-
$payment_method
: AbstractGateway
-
Return values
array<string|int, mixed>|bool
register_gateways()
public
register_gateways(PaymentGatewayRegistry $registry) : mixed
Parameters
-
$registry
: PaymentGatewayRegistry
-
should_save_payment_method()
public
should_save_payment_method(bool $bool, WC_Order $order, AbstractGateway $payment_method) : bool
Parameters
-
$bool
: bool
-
-
$order
: WC_Order
-
-
$payment_method
: AbstractGateway
-
show_save_payment_method()
public
show_save_payment_method(bool $show, AbstractGateway $gateway) : bool
Parameters
-
$show
: bool
-
-
$gateway
: AbstractGateway
-
is_change_payment_method_request()
private
is_change_payment_method_request() : mixed
scheduled_subscription_payment()
private
scheduled_subscription_payment(float $amount, WC_Order $order, AbstractGateway $gateway) : void
Parameters
-
$amount
: float
-
-
$order
: WC_Order
-
-
$gateway
: AbstractGateway
-
update_failing_payment_method()
private
update_failing_payment_method(WC_Subscription $subscription, WC_Order $order, mixed $gateway) : void
Parameters
-
$subscription
: WC_Subscription
-
-
$order
: WC_Order
-
-
$gateway
: mixed
-