A common loophole for that (because the credit card companies themselves demand no fees for using a credit card) is to offer a discount for cash/debit. So everything is priced with the CC fee built in, but they take it off the price when you don't use a CC.
Though I have the most respect for the places willing to say "nah, we won't take CC at all".