Penal Code section 1203.4, subdivision (c) provides for a filing fee to pay the actual cost of services rendered by the county at a rate set by the board of supervisors for a petition for a change of plea or to set aside a verdict, following successful completion of probation. The court here held the statute authorizes imposition of the fee only after the superior court determines that the petitioner has the ability to pay without undue hardship and exercises its discretion to order payment. Thus, the superior court clerk cannot impose the fee at the time of filing. The court may require payment of a fee predetermined by the board of supervisors and need not determine the actual cost of services rendered for each petition. No individual hearing is required to determine each petitioners ability to pay.