If you don't have cash and are getting a taxi, make sure you tell the driver you want to pay with a card not cash before you engage the driver. It's not legal that they could refuse you and claim their pos doesn't work, but it will save a lot of hassle not having to deal with the situation should it arise.