Have you tried signing out of your Apple ID then back in again?
Are you able to purchase other things with the same Apple ID on the same device?
Have you tried buying donuts in your game with your Apple ID on a different device?
Do you have enough credit in your account? (Sounds obvious and not meant to be insulting but you never know)