Credit: Dimitrios Kambouris/WireImage for Tommy Hilfiger

Ka-ching!

Jennifer Lopez is getting $12 million to serve as an American Idol judge next season, a source tells UsMagazine.com.

On Monday, a source told Us that Lopez's deal was set.

After a long negotiation process, "it ended up working out and they have a good agreement," the source said.

She joins longtime Idol judge Randy Jackson and newcomer, Aerosmith frontman Steven Tyler.

Kara DioGuardi recently confirmed she has left the show, along with Simon Cowell and Ellen DeGeneres.