If you were caught up in Apple’s alleged attempts at fixing e-book prices to compete more effectively with Amazon, you’re about to get paid.
Starting on Tuesday, millions of people who bought e-books from five of the country’s largest publishing companies between April 1, 2010 and May 21, 2012, will receive credits for each purchase, law firm Hagens Berman, the attorneys who led the class-action lawsuit against those publishers and Apple (AAPL), announced on Monday.
Consumers will receive credits and checks in the amount of “twice their losses,” the attorneys said. For every New York Times bestselling e-book purchased from Amazon (AMZN), Barnes & Noble (BKS), and Apple, among other retailers, consumers will receive a $6.93 credit for each purchase. Consumers who purchased other e-books will receive a $1.57 credit for each purchase.
The cash-back comes after a protracted battle between the U.S. and Apple over whether the company illegally colluded with Simon & Schuster, HarperCollins, and other major publishers, over the price of electronic books sold through its iBookstore. The class, which included people across the U.S. and was brought against Apple by the U.S. Justice Department and attorneys general in 33 states across the country, argued that Apple and the publishers worked together to intentionally raise e-book prices by as much as 50%.
Get Data Sheet, Fortune’s technology newsletter
The case centered on Amazon, which was selling e-books back in 2010 for low prices through its Kindle store. Publishers were allegedly displeased that they were not setting the prices on the books. Seeing an opportunity, Apple is alleged to have made deals with the publishers to allow them to set their own e-book pricing. The practice then forced Amazon to raise its prices or face the possibility of losing access to content.
“According to attorneys, the anticompetitive price-fixing collusion between Apple and the publishers caused the price of e-books to increase 30 to 50 percent to $12.99 or $14.99 from Amazon’s $9.99 price,” Hagens Berman said in a statement on Monday.
The case, which was filed against Apple in the publishers in 2012, accused the companies of violating antitrust laws and hurting Amazon, which had previously filed a complaint with the Federal Trade Commission. While the publishers eventually settled with the court, Apple tried to battle rulings against the iPhone maker, arguing that there was no proof of the company actually trying to increase e-book prices and never tried to conspire with the publishers.
After several losses in lower courts, Apple appealed the case to the U.S. Supreme Court, which in March, refused to hear the case. Leaving Apple with nowhere to go, the earlier verdict was sealed and Apple was forced to pay $400 million in compensation.
For more on Apple, watch:
Determining whether a person will be part of the group receiving Apple’s payout is somewhat simple. In 2014, the publishers, which had already settled with the government, started issuing credits to affected customers. Apple will pay those same customers starting on Tuesday. The attorneys didn’t say when all of the credits and checks will be disbursed.
So, this is the end of Apple’s price-fixing lawsuit. And ironically, it might have all been for nothing: Amazon is still the dominant force in e-book purchases and Apple is trailing far behind the competitor it had hoped years ago to take down.
Apple did not immediately respond to a request for comment.