In all cases where charges are allowed by the court or officer awarding the writ, the person serving the same shall pay or tender to the officer or other person having custody of the prisoner, the amount of the charges for bringing up such prisoner, and shall also give bond, with security if required, to the officer or person having custody of the party to be relieved, conditioned for the payment of the charges of conveying back the prisoner, if remanded. Otherwise the service shall not be deemed complete.
§ 532.130, RSMo