The order to the witness and to the person having custody of the witness shall provide for the return of the witness at the conclusion of the witness's testimony, proper safeguards on the witness's custody, and proper financial reimbursement or prepayment by the requesting jurisdiction for all expenses incurred in the production and return of the witness, and may prescribe such other conditions as the judge thinks proper or necessary. Mileage and expenses shall be allowed as provided for state employees. The order does not become effective until the judge of the state requesting the witness enters an order directing compliance with the conditions prescribed.
SDCL 23A-14A-4