Converting the Mag-stripe into an audio signal that could be sent through the headphone jack was pretty clever and enabled very cheap devices. And correct me if I'm wrong but I believe square was first there.
Also timing. Mobile devices have come a long way in that time period, as has ecommerce.