PaymentGatewayRegistry
extends BaseRegistry
in package
Payment Gateway Registry
Manages registration and retrieval of payment gateways.
Tags
Table of Contents
Properties
- $container : mixed
- $registry : mixed
- $registry_id : mixed
Methods
- __construct() : mixed
- get() : mixed
- get_active_integrations() : mixed
- get_add_payment_method_script_handles() : array<string|int, mixed>
- Get script dependencies for add payment method page.
- get_bnpl_payment_gateways() : array<string|int, AbstractGateway>
- get_cart_payment_gateways() : array<string|int, mixed>
- Get payment gateways available on the cart page.
- get_cart_script_handles() : array<string|int, mixed>
- Get script dependencies for cart page.
- get_checkout_payment_gateways() : array<string|int, mixed>
- Get payment gateways available on the checkout page.
- get_checkout_script_handles() : array<string|int, mixed>
- Get script dependencies for checkout page.
- get_express_checkout_script_handles() : array<string|int, mixed>
- Get script dependencies for express checkout.
- get_express_payment_gateways() : array<string|int, mixed>
- Get express checkout payment gateways (Link, Apple Pay, Google Pay).
- get_minicart_payment_gateways() : array<string|int, mixed>
- Get payment gateways available in the mini cart.
- get_minicart_script_handles() : array<string|int, mixed>
- Get script dependencies for mini cart.
- get_product_payment_gateways() : array<string|int, mixed>
- Get payment gateways available on the product page.
- get_product_script_handles() : array<string|int, mixed>
- Get script dependencies for product page.
- get_registered_integrations() : mixed
- get_shop_script_handles() : mixed
- initialize() : mixed
- is_empty() : bool
- is_initialized() : bool
- register() : mixed
Properties
$container
protected
mixed
$container
$registry
protected
mixed
$registry
= []
$registry_id
protected
mixed
$registry_id
= 'payment_gateways'
Methods
__construct()
public
__construct(Container $container) : mixed
Parameters
- $container : Container
get()
public
get(mixed $id) : mixed
Parameters
- $id : mixed
get_active_integrations()
public
get_active_integrations() : mixed
get_add_payment_method_script_handles()
Get script dependencies for add payment method page.
public
get_add_payment_method_script_handles() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array of script handles.
get_bnpl_payment_gateways()
public
get_bnpl_payment_gateways(ContextHandler $context) : array<string|int, AbstractGateway>
Parameters
- $context : ContextHandler
Return values
array<string|int, AbstractGateway>get_cart_payment_gateways()
Get payment gateways available on the cart page.
public
get_cart_payment_gateways() : array<string|int, mixed>
Return values
array<string|int, mixed>get_cart_script_handles()
Get script dependencies for cart page.
public
get_cart_script_handles() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array of script handles.
get_checkout_payment_gateways()
Get payment gateways available on the checkout page.
public
get_checkout_payment_gateways() : array<string|int, mixed>
Return values
array<string|int, mixed>get_checkout_script_handles()
Get script dependencies for checkout page.
public
get_checkout_script_handles() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array of script handles.
get_express_checkout_script_handles()
Get script dependencies for express checkout.
public
get_express_checkout_script_handles() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array of script handles.
get_express_payment_gateways()
Get express checkout payment gateways (Link, Apple Pay, Google Pay).
public
get_express_payment_gateways() : array<string|int, mixed>
Return values
array<string|int, mixed>get_minicart_payment_gateways()
Get payment gateways available in the mini cart.
public
get_minicart_payment_gateways() : array<string|int, mixed>
Return values
array<string|int, mixed>get_minicart_script_handles()
Get script dependencies for mini cart.
public
get_minicart_script_handles() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array of script handles.
get_product_payment_gateways()
Get payment gateways available on the product page.
public
get_product_payment_gateways() : array<string|int, mixed>
Return values
array<string|int, mixed>get_product_script_handles()
Get script dependencies for product page.
public
get_product_script_handles() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array of script handles.
get_registered_integrations()
public
get_registered_integrations() : mixed
get_shop_script_handles()
public
get_shop_script_handles() : mixed
initialize()
public
initialize() : mixed
is_empty()
public
is_empty() : bool
Tags
Return values
boolis_initialized()
public
is_initialized() : bool
Return values
boolregister()
public
register(mixed $integration) : mixed
Parameters
- $integration : mixed