Apple on Monday agreed to settle a lawsuit leveled by a group of parents who sued the company after their children spent large amounts of money on in-app purchases, with the company planning to dole out $5 iTunes gift cards, the same amount in cash, or a full refund if the initial charge was over $30.