WooCommerce Code Reference

Search results

WC_Payment_Gateways

Payment gateways class.

Table of Contents

$payment_gateways Payment gateway classes. array
$_instance The single instance of the class. WC_Payment_Gateways
instance() Main WC_Payment_Gateways Instance. WC_Payment_Gateways
__clone() Cloning is forbidden. mixed
__wakeup() Unserializing instances of this class is forbidden. mixed
__construct() Initialize payment gateways. mixed
init() Load gateways and hook in functions. mixed
payment_gateways() Get gateways. array
get_payment_gateway_ids() Get array of registered gateway ids array
get_available_payment_gateways() Get available gateways. array
filter_valid_gateway_class() Callback for array filter. Returns true if gateway is of correct type. bool
set_current_gateway() Set the current, active gateway. mixed
process_admin_options() Save options in admin. mixed

Properties

Methods

__wakeup()

Unserializing instances of this class is forbidden.

public __wakeup( ) : mixed
Tags
since
Return values
mixed

get_payment_gateway_ids()

Get array of registered gateway ids

public get_payment_gateway_ids( ) : array
Tags
since
Return values
array

of strings

get_available_payment_gateways()

Get available gateways.

public get_available_payment_gateways( ) : array
Return values
array

filter_valid_gateway_class()

Callback for array filter. Returns true if gateway is of correct type.

protected filter_valid_gateway_class( $gateway : object ) : bool
Parameters
$gateway : object

Gateway to check.

Tags
since
Return values
bool

set_current_gateway()

Set the current, active gateway.

public set_current_gateway( $gateways : array ) : mixed
Parameters
$gateways : array

Available payment gateways.

Return values
mixed
Back to the top