When dealing with two different products and their associated payment methods, the Magento 2 Payment Restrictions Extension allows for independent control. Merchants can establish distinct rules for each product, ensuring that the appropriate payment method restrictions are applied based on the characteristics of the items in the cart.
Read this guide on How to Restrict Some Payment Methods in Magento 2 to setup this extension.
Here are the few more resource to help you get most out of this Magento 2 Payment Restrictions Extension.
How to Disable Payment Method for Certain Customer Groups in Magento 2
How to Disable a Payment Method Programmatically in Magento 2
How to Restrict Payment Methods by Attribute/Category in Magento 2
Streamline Your Checkout Process with our Payment Restrictions Extension for Magento 2