Epic Games has had to fork out millions of dollars for allowing children to make in-game purchases without consent.