Gas pumps are larger transactions, so the credit card fees are less of a hit for the business. A level 2 AC charger is about $1 per hour of electricity, so you're taking huge credit card fees for shorter charges.
Most of the apps have some sort of balance that lets you make one $10 transaction and then spend it on a lot of smaller charge sessions.
That's an interesting wrinkle on what should be an otherwise tractable. Perhaps the government should subsidize the transaction fees in some way like they subsidize the oil companies.
Not sure why that gets a downvote. We use this solution all over the place. From transit cards to gift cards you pay a single transaction fee to the credit card company so you can then pay 0 transaction fees on the tiny purchases.
So an AC outlet with a built in meter and payment terminal, that simply provides AC power to the car with an onboard DC converter, already exists. That's what basically every Level 2 EV charger is today.
(Really it's an "EVSE" not a charger, it is doing no charging work)
They have a couple of extra safety features (like a contractor and GFCI) and include the cable (in North America, in countries with the Type 2 connector you bring your own cable).
These chargers go up to 19.2kW commonly in the US, although the charge rate can be limited by the installation (circuit size) or the car (onboard charger capacity).
Really the only difference with the fancier ones is they have a screen and payment terminal or NFC terminal for activating and paying. Like a gas pump, although most want you to use their app and membership to save (them) on credit card processing fees.
DC fast chargers are a whole different story, where the AC to DC conversion happens external to the car.
Most of the apps have some sort of balance that lets you make one $10 transaction and then spend it on a lot of smaller charge sessions.