(a) The following shall constitute basic conditions of probation applicable to all defendants upon whom a period of probation has been imposed: (8) Pay restitution, court costs, and fines, if assessed, in one or several sums, based on the defendant's ability to pay; and