Upon order of the court for the reinstatement of bond or undertaking of bail, previously forfeited, the county treasurer shall pay to the clerk of court or other officer with whom it was originally deposited such bond or undertaking of bail.
SDCL 23A-43-25.1