If an order respecting costs is not made by the court, costs shall be allowed and paid in the same manner as costs in a prosecution of a minor offense in the same court. If a person is required to give security to keep the peace, the court may further order that the costs of prosecution or any part of those costs be paid by that person. The person shall be committed until the costs are paid or until the person is otherwise legally discharged.
MCL 772.8