WooCommerce showing different payment methods based on different product property selections

I have a WordPress website that is an online store based on WooCommerce.
I want to have specific payment methods (or gateways) for each product property selected by the user. when the user selects a specific property (eg a) from a product, it only indicates a specific payment method. and when you select property (b), another payment method will be displayed. I looked for and saw codes to select a specific payment method based on the selected shipping methods, but I found nothing based on the selection of product properties.