How is payment methods grouping implemented on the frontend checkout page?

Magento_Checkout/js/view/payment/list

Each payment group implemented by a Magento_Checkout/js/view/payment/list instance:

Magento_Checkout/js/view/payment/list::getGroupTitle()

A group’s title is only shown for the groups with more than 1 payment method:

See also: