Automattic\WooCommerce\Internal\Admin\Settings

PaymentProviders::get_extension_suggestion_categoriespublicWC 1.0

Get the payment extension suggestions categories details.

Method of the class: PaymentProviders{}

No Hooks.

Returns

Array. The payment extension suggestions categories.

Usage

$PaymentProviders = new PaymentProviders();
$PaymentProviders->get_extension_suggestion_categories(): array;

PaymentProviders::get_extension_suggestion_categories() code WC 9.9.3

public function get_extension_suggestion_categories(): array {
	$categories   = array();
	$categories[] = array(
		'id'          => self::CATEGORY_EXPRESS_CHECKOUT,
		'_priority'   => 10,
		'title'       => esc_html__( 'Wallets & Express checkouts', 'woocommerce' ),
		'description' => esc_html__( 'Allow shoppers to fast-track the checkout process with express options like Apple Pay and Google Pay.', 'woocommerce' ),
	);
	$categories[] = array(
		'id'          => self::CATEGORY_BNPL,
		'_priority'   => 20,
		'title'       => esc_html__( 'Buy Now, Pay Later', 'woocommerce' ),
		'description' => esc_html__( 'Offer flexible payment options to your shoppers.', 'woocommerce' ),
	);
	$categories[] = array(
		'id'          => self::CATEGORY_CRYPTO,
		'_priority'   => 30,
		'title'       => esc_html__( 'Crypto Payments', 'woocommerce' ),
		'description' => esc_html__( 'Offer cryptocurrency payment options to your shoppers.', 'woocommerce' ),
	);
	$categories[] = array(
		'id'          => self::CATEGORY_PSP,
		'_priority'   => 40,
		'title'       => esc_html__( 'Payment Providers', 'woocommerce' ),
		'description' => esc_html__( 'Give your shoppers additional ways to pay.', 'woocommerce' ),
	);

	return $categories;
}