It is best to agree on the payment modalities before you start work and record them in the employment contract: