I only have anecdata about this, but every taxi driver (50+) I've ever discussed CC vs. cash (this is in NYC and limited to medallion taxis) has said they prefer cash every single time.
That's mostly because of the 5% CC processing fees on every transaction, as well as delays in receiving their money from CC transactions.
I imagine it's different elsewhere, but not (at least AFAICT) where I live.