For tipping in both Spain and Portugal, 5-10% is the norm, if you do tip. However, especially in Portugal, it is not "required" or expected at most places, but if you do want to leave a tip, Cash is really the only way. If paying by card, they bring the terminal to you, show you the amount...