(CAPITOL CITY NOW)Grubhub has agreed to pay $25 million to settle claims that it misled customers, delivery drivers, and restaurants with deceptive business practices. The settlement, which follows a lengthy investigation, will provide nearly $25 million in refunds to affected customers and put an end to the company’s unfair tactics.

Illinois Attorney General Kwame Raoul initiated the investigation with the Federal Trade Commission after receiving dozens of complaints about the food ordering and delivery platform.

The investigation revealed that Grubhub tricked customers about delivery costs and subscription benefits, gave drivers false promises about how much they could earn, and listed restaurants on its app without their permission.

FTC Chair Lina Khan said the investigation not only found that Grubhub tricked its customers and deceived its drivers, but unfairly damaged the reputation and revenues of restaurants that did not partner with Grubhub—all in order to “drive scale and accelerate growth.” She said there is no “gig platform exemption to the laws on the books.”

Consumers will receive $24.8 million in restitution, with $200,000 going to support consumer protection efforts in Illinois. Going forward, Grubhub must clearly disclose fees, provide proof of driver earnings claims, and get permission from restaurants before listing them on its platform.