In an interview with Broadway Journal in 2016, Marx said about The Book of Mormon, “I worked with them [Lopex, Parker, & Stone] on it and then we split up and made a deal, I don’t want to say more than that except that I’m extremely happy the show has been so successful!"
So, I'm going to assume he has been paid handsomly for his work.