If you’ve added custom scripts or use a custom theme, it could interfere with how the discount codes are applied, especially when using the "Buy Now" button.
Solution: Check if there are any JavaScript conflicts or custom code that may be blocking the discount code input from being validated.