Automattic\WooCommerce\Internal\Admin\Settings

Payments::get_payment_extension_suggestionspublicWC 1.0

Get the payment extension suggestions for the given location.

Method of the class: Payments{}

No Hooks.

Returns

Array[]. The payment extension suggestions for the given location, split into preferred and other.

Usage

$Payments = new Payments();
$Payments->get_payment_extension_suggestions( $location ): array;
$location(string) (required)
The location for which the suggestions are being fetched.

Payments::get_payment_extension_suggestions() code WC 9.9.4

public function get_payment_extension_suggestions( string $location ): array {
	return $this->providers->get_extension_suggestions( $location, self::SUGGESTIONS_CONTEXT );
}