This already happens in Australia. The price is the price, until you go to pay and if the shopkeeper sees you pull out a credit card, would adjust the total to include a 1.5% surcharge (Visa or Mastercard, and you'll likely be turned away if you pull out a different card like Amex).
The problem with this is that especially since Covid, a massive percentage of in person sales are done via contactless credit card payment, sometimes even with the screen of the terminal not even in view of the cardholder. Some sellers have caught on to this and are charging _much_ more than the 1.5% -- three sushi handrolls at the store around the corner of my workplace would cost about 9 AUD to buy (already includes GST), but the shopkeeper then added a whole 1 AUD on top for surcharge. I protested and have not shopped there since, but there's still plenty of customers at that store.
More and more stores are adding 50c or 1 AUD on top to cover surcharge for items well under 10 AUD, I'm guessing because calculating 1.5% is not trivial for a lot of people, and are ripping off their customers. Calculating 2.08% in your head to make sure the shopkeeper is not pulling a sly one on you unfortunately is not something a lot of people are going to do.