Bank of America has agreed to pay $32-million (U.S.) to settle charges that it made harassing debt collection calls to customers’ cellphones, in what is believed to be the largest cash payout ever under a 1991 law meant to protect consumers from unwanted calls.

The settlement will resolve multiple proposed class action lawsuits filed on behalf of 7.7 million of the bank’s credit card and mortgage loan customers, according to court documents.