This may happen due to an unstable internet connection, or the lack of it. Please, make sure that your internet connection is working properly so you can continue making purchases.
Also, try to close the game and reopen it to "refresh" the game and your connection with our servers.