At any time after an order admitting a defendant to bail, the defendant or another person may deposit with the clerk of the court in which the defendant is held to answer, or the court's designee, the sum mentioned in the order in cash. A receipt of the moneys issued by the clerk or the court's designee shall be provided to the person posting the cash bail. A release shall be issued for the defendant and the defendant shall be discharged from custody.