【Updated: 】
If an error occurs when purchasing rubies, restart the game and check to see if your purchase has been reflected in the game.
If it has not, please wait up to 2 hours before trying again, since purchases may not immediately be reflected.