Sometimes you do not get the costume right away if you donate the exact amount needed. I don't know why this happens, but if you just donate one or two more points, the tamagotchi should 'realize' that you have enough, and you will get royal costume. Hope I helped!