He receives a prorated MLB salary for the duration of his time in the majors. Chances are it’s minimum MLB pay.
Some players have contracts stating in the minors they make X and if in the majors they make Y. These are typically players who have been up before.