When my wife worked retail (20+ years ago), she had to verify the name on the card with the name on the machine with the name on their ID. They caught a decent number where the machine had a different name pop up than the card showed. And WAY more when comparing both to their ID.
They called her "The Bulldog" because of how vigilant she was about it. That store lead the region in CC Fraud. But soon they were the bottom of the region in shrink and loss prevention.
At least in my experience the "name on the machine" back then was just read from the magstripe - I had access to a track 3 writer and had some fun copying my credit card info onto my driver license and swiping that.
I worked retail for a bit in high school. I tried to check card vs ID name for about a week before the manager told me to cut that shit out - too many wives, kids, etc using "dad's" card (this was 1994, so it was almost exclusively dad's card - I imagine that's changed in the last 30 years).