Can I assign available payment methods only using the WooCommerce configuration to certain user roles? I mean without adding anything to any of the template files. What I want to achieve is to offer only those users the possibility to pay by credit card.
Actually, this is not possible in WooCommerce default configuration.
But you can install a plugin
Also, it can be don programmatically, you can refer below link.