(a) If a judge of a court of record in any state which by its laws has made provision for commanding persons within the state to attend and testify in this state certifies under the seal of the court that there is a criminal prosecution pending in the court, or that a grand jury investigation has commenced or is about to commence, that a person within this state is a material witness in that prosecution or grand jury investigation, and that the presence of that person will be required for a specified number of days, then, upon presentation of the certificate to a judge of a court of record in the judicial district in which the person is, the judge shall fix a time and place for a hearing and shall make an order directing the witness to appear at a time and place certain for the hearing.
(b) If at a hearing the judge determines that the witness is material and necessary, that it will not cause undue hardship to the witness to be compelled to attend and testify in the prosecution or grand jury investigation in the other state, and that the laws of the state in which the prosecution is pending or grand jury investigation has commenced or is about to commence will give to the witness protection from arrest and the service of civil and criminal process, the judge shall issue a subpoena, with a copy of the certificate attached, directing the witness to attend and testify in the court where the prosecution is pending or where a grand jury investigation has commenced or is about to commence at a time and place specified in the subpoena. In any such hearing the certificate shall be prima facie evidence of all of the facts stated therein.
(c) If the certificate recommends that the witness be taken into immediate custody and delivered to an officer of the requesting state to assure attendance in the requesting state, the judge may, in lieu of notification of the hearing, direct that the witness be immediately brought before the judge for said hearing; and if the judge at the hearing is satisfied of the desirability of the custody and delivery, for which determination the certificate shall be prima facie proof of this desirability, the judge may, in lieu of issuing subpoena, order that the witness be immediately taken into custody and delivered to an officer of the requesting state.
(d) If the witness who is subpoenaed as provided in this section, after being paid or tendered by a properly authorized person a sum equivalent to the cost of air fare round trip passage on a certificated carrier or such prepaid passage and reasonable incidental travel allowance for going to and from airports plus $20 per day for each day that the witness is required to travel and attend as a witness, fails without good cause to attend and testify as directed in the subpoena, the witness shall be punished in the manner provided for the punishment of a witness who disobeys a subpoena issued from a court of record in this state.