PaymentGatewaysController
in package
Table of Contents
Properties
- $check_payment_availability : mixed
- $context_handler : mixed
- $registry : mixed
Methods
- __construct() : mixed
- add_cart_data() : array<string|int, mixed>
- Decorate the array of cart data with available payment methods. This method adds each registered payment method integration along with whether it's available.
- add_payment_gateway_data() : mixed
- enqueue_minicart_scripts() : mixed
- enqueue_scripts() : mixed
- filter_available_payment_gateways() : array<string|int, WC_Payment_Gateway>
- get_payment_gateway_classes() : mixed
- initialize() : mixed
- process_payment_gateway_options() : void
- register_payment_gateways() : void
- set_check_payment_availability() : mixed
- add_woocommerce_payment_gateway() : mixed
Properties
$check_payment_availability
private
mixed
$check_payment_availability
= false
$context_handler
private
mixed
$context_handler
$registry
private
mixed
$registry
Methods
__construct()
public
__construct(PaymentGatewayRegistry $registry, ContextHandler $context_handler) : mixed
Parameters
- $registry : PaymentGatewayRegistry
- $context_handler : ContextHandler
add_cart_data()
Decorate the array of cart data with available payment methods. This method adds each registered payment method integration along with whether it's available.
public
add_cart_data(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>add_payment_gateway_data()
public
add_payment_gateway_data(AssetDataApi $asset_data, ContextHandler $context) : mixed
Parameters
- $asset_data : AssetDataApi
- $context : ContextHandler
enqueue_minicart_scripts()
public
enqueue_minicart_scripts() : mixed
enqueue_scripts()
public
enqueue_scripts() : mixed
filter_available_payment_gateways()
public
filter_available_payment_gateways(array<string|int, WC_Payment_Gateway> $gateways) : array<string|int, WC_Payment_Gateway>
Parameters
- $gateways : array<string|int, WC_Payment_Gateway>
Return values
array<string|int, WC_Payment_Gateway> —$gateways
get_payment_gateway_classes()
public
get_payment_gateway_classes() : mixed
initialize()
public
initialize(ServiceProvider $service_provider) : mixed
Parameters
- $service_provider : ServiceProvider
process_payment_gateway_options()
public
process_payment_gateway_options(string $id) : void
Parameters
- $id : string
register_payment_gateways()
public
register_payment_gateways(PaymentGatewayRegistry $registry, Container $container) : void
Parameters
- $registry : PaymentGatewayRegistry
- $container : Container
set_check_payment_availability()
public
set_check_payment_availability(mixed $bool) : mixed
Parameters
- $bool : mixed
add_woocommerce_payment_gateway()
private
add_woocommerce_payment_gateway(mixed $gateways) : mixed
Parameters
- $gateways : mixed