'What was that?' is fine, but you could try 'Sorry, I didn't quite catch that.' That's only six words, and it's more polite than directly asking the person to repeat what they said. It is polite because it's suggesting that it is your fault. Unless you are a parent or a teacher, telling someone to say something again can sound a bit rude and abrupt.