Automattic\WooCommerce\Blocks\BlockTypes

PaymentMethodIcons::get_available_payment_methodsprivateWC 1.0

Get the available payment methods.

Method of the class: PaymentMethodIcons{}

No Hooks.

Returns

Array. Available payment methods.

Usage

// private - for code of main (parent) class only
$result = $this->get_available_payment_methods();

PaymentMethodIcons::get_available_payment_methods() code WC 10.3.6

private function get_available_payment_methods() {
	$enabled_cards   = array_values( $this->get_enabled_card_types() );
	$payment_methods = array_merge( $enabled_cards, $this->get_other_payment_method_icons() );
	return $payment_methods;
}