you have to pay upon filing of a case but it is minimal and fair enough.I paid QR 20 for typing and QR 100 for the case.
And once case is done ,another payment will be done for the processing of the court decision/order.QR 20 for typing and another QR 100 for the document.

this is based on my experienced.

payments varied from the country you are into ,I guess.