Yes, in the sense that they can't charge customers paying with a credit card a different price. However, because payment fees are an expense to their business, merchants absolutely pass on that cost to customers - it is reflected in the final price of whatever they are selling. In a sense, the non-credit paying customers subsidize those paying with a credit card.