No, it has to be paid after the work contract ends, either in one go or monthly.
From what I could read the amount must be "reasonable": between 1/3 and 2/3 of the salary depending on how wide the non-compete is (https://www.village-justice.com/articles/montant-contreparti...)