I am facing an issue with applying an automatic discount for specific payment methods in WooCommerce. I want to offer a 10% discount when customers select Net Banking, UPI, or QR Code as their payment method. However, the discount is also being applied to Cash on Delivery (COD) orders, which should not happen.
Issue Details:
The discount should apply only to Net Banking (bacs), UPI (upi), and QR Code (qr_code).
It should not apply to COD (cod).
The discount should be automatically added when customers select eligible payment methods.