Apple (Nadaq: AAPL) will refund at least $32.5 million to consumers to settle a federal case involving purchases that kids made without their parents’ permission while playing on mobile apps, the government announced Wednesday.

The Federal Trade Commission said Apple will make full refunds for any such in-app purchases made by kids while playing on mobile phones and other devices, and incurring charges without parents’ knowledge or permission.

Under the terms of the settlement, Apple also agreed to change its billing practices to make sure that it has obtained “express, informed consent” from consumers before charging them for items sold in mobile apps.

“You cannot charge consumers for purchases they did not authorize,” said FTC Chairwoman Edith Ramirez in a statement. “This settlement is a signal to the business community: whether you’re doing business in the mobile arena or the mall down the street, fundamental consumer protections apply.”

Kristin Huguet, a spokeswoman for Apple, didn’t have an immediate comment.

The commission said it had received tens of thousands of complaints about unauthorized charges.

 Ramirez said the settlement only involves children’s mobile apps and charges racked up when kids bought things such as virtual currency or dragon food. In some cases, Ramirez said, charges ran into the hundreds and even thousands of dollars.

The $32.5 million is the minimum that Apple would pay. As part of the settlement, Apple is required to pay full refunds to consumers for kids’ unauthorized purchases, so the number could go higher. If it doesn’t rise to $32.5 million, the difference would be paid to the FTC, Ramirez said.

The FTC said the apps included a 15-minute window in which passwords were not needed to make the purchases, but that Apple did not inform users about that.