Re/code reports that Apple has agreed with the Federal Trade Comission to refund $32.5 million for unauthorised in-app purchases.

Re/code obtained a copy of Tim Cook’s memo to Apple employees. Although Apple had taken action to rectify the concerns raised by customers, FTC stepped in and sued Apple.

It doesn’t feel right for the FTC to sue over a case that had already been settled. To us, it smacked of double jeopardy. However, the consent decree the FTC proposed does not require us to do anything we weren’t already going to do, so we decided to accept it rather than take on a long and distracting legal fight.

Despite the perceived unfair treatment, Apple has decided to do the right things, simple because it was the right thing to do.

Apple is a company full of disruptive ideas and innovative people, who are also committed to upholding the highest moral, legal and ethical standards in everything we do. As I’ve said before, we believe technology can serve humankind’s deepest values and highest aspirations. As Apple continues to grow, there will inevitably be scrutiny and criticism along our journey. We don’t shy away from these kinds of questions, because we are confident in the integrity of our company and our coworkers.

Apple should be applauded for doing more than what its competitors have. If the FTC is so zealous about the issue, they should investigate other companies as well.