Hi David!
It sounds like you are trying to make an in-app purchase but keep getting the error message that you cannot connect to the iTunes store. I would recomend using the following article to help determine what may be causing the issue here, named:
iTunes: Advanced iTunes Store troubleshooting
Thank you for using Apple Support Communities.
Cheers,
Sterling