Allow to restrict payment modules by customer, delivery module, customer family or shipping area
Add it in your main thelia composer.json file
composer require thelia/payment-condition-module ^3.0
Go to module configuration where you can configure the payment restrictions. This module change the payment loop result so if you use this loop to display your payment method you will have nothing else to do.