In 2018, at the World Cup in Russia, FIFA paid all referees a lump sum (salary) plus match fees. The referees were paid 57,000 euros for participation plus 2,500 euros per match. The assistant referees were paid 20,000 euros plus 1,600 euros for each match.
It seems that the payment system will change for the World Cup 2022 in Qatar. The referees will be paid $5,000 per match in the group stage and $10,000 per match in the knock-out rounds. The assistant referees and fourth officials will receive $2,500 per game in the group stage and $5,000 per game in the knock-out stage. For their part, the video assistant referees (VARs) will be paid $3,000 per match in the group stage and $5,000 per match in the elimination rounds.
Source: Diez