I would immediately stop doing business with a retailer who dared to do this. What’s next? Charging a customer N% more because he drove to your store and parking spaces are expensive? At some point you need to accept certain costs of doing business and not always be looking to segment your customers to selectively pass expenses to them.
This is both true and false. In 2013, MC and Visa agreed in a settlement that they could not prohibit merchants from imposing a surcharge on credit card customers.
However, 10 states prohibit such surcharges, including CA, NY, FL, MA, and TX...i.e., the states with most CC transactions.