When paying by credit card in most shops, you are required to present additional ID.

For most visitors to Mallorca this will be a passport but almost everywhere will also accept the plastic card part of your driving license or the medical entitlement card that replaced the E111, which you can obtain from a post office.

Oddly enough, I have never been asked to provide ID in restaurants.