Here is the correct sentence: What did you buy for her? (past tense) If you are talking about a future purchase, then you can ask it this way: What are you going to buy for her?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.