I'm actually not sure how those work now that 3.5mm jacks are critically endangered. Probably in the USB/Lightning port instead?
Many of my cards no longer have embossed numbers, so that has to be dicey.
They take checks too of course
Gas pumps were the last holdouts on swipe reads, in my area anyway.
My son was recently telling me he still knows of people who use the original Square swipe reader on their phone, which surprised me as I had guessed Square no longer supported it, and many phones don't even have the 3.5mm headphone jack that the reader plugs into.
https://www.masonic-lodge-of-education.com/square-and-compas...
But every platform will let you use a plugged in mic, and likely detect that one is plugged in. And if the bias voltage for the microphone isn't enough, you can play a sine wave to the headphone contacts (or one of them) to deliver power.