Verizon Wireless has agreed to pay $21 million to settle a lawsuit filed by California customers upset with the company’s early termination fees, a lawyer on the case said Wednesday.

Many details of the settlement still need to be worked out and authorized by an Alameda County Superior Court judge, said Alan Plutzik, an attorney for the customers.