Automattic\WooCommerce\Internal\Admin\Settings
PaymentsProviders::get_extension_suggestion_categories
Get the payment extension suggestions categories details.
Method of the class: PaymentsProviders{}
No Hooks.
Returns
Array. The payment extension suggestions categories.
Usage
$PaymentsProviders = new PaymentsProviders(); $PaymentsProviders->get_extension_suggestion_categories(): array;
PaymentsProviders::get_extension_suggestion_categories() PaymentsProviders::get extension suggestion categories code WC 10.7.0
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;
}