“Witness” shall include a person whose testimony is desired in any proceeding or investigation by a grand jury or in a criminal action, prosecution or proceeding.
“State” shall include any territory of the United States and the District of Columbia.
“Subpoena” shall include a summons in any state where a summons is used in lieu of a subpoena.
If at such hearing the justice or 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 a 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 him protection from arrest and the service of civil and criminal process, he 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 the facts stated therein.
If said certificate recommends that the witness be taken into immediate custody and delivered to an officer of the requesting state to assure his attendance in the requesting state such justice or judge may, in lieu of notification of the hearing, direct that such witness be forthwith brought before him for said hearing; and the justice or judge at the hearing being satisfied of the desirability of such custody and delivery, for which determination the certificate shall be prima facie proof of such desirability may, in lieu of issuing subpoena, order that said witness be forthwith taken into custody and delivered to an officer of the requesting state.
If the witness, who is subpoenaed as above provided, after being paid or tendered by some properly authorized person the sum of ten cents a mile for each mile and five dollars for each day that he is required to travel and attend as a witness fails without good cause to attend and testify as directed in the subpoena, he shall be punished in the manner provided for the punishment of any witness who disobeys a subpoena issued from a court of record in this state.
If said certificate recommends that the witness be taken into immediate custody and delivered to an officer of this state to assure his attendance in this state, such judge may direct that such witness be forthwith brought before him; and the judge being satisfied of the desirability of such custody and delivery, for which determination said certificate shall be prima facie proof, may order that said witness be forthwith taken into custody and delivered to an officer of this state, which order shall be sufficient authority to such officer to take such witness into custody and hold him unless and until he may be released by bail, recognizance, or order of the judge issuing the certificate.
If the witness is summoned to attend and testify in this state he shall be tendered the sum of ten cents a mile for each mile and five dollars for each day that he is required to travel and attend as a witness. Such fees shall be a proper charge upon the county in which such criminal prosecution or grand jury investigation is pending. A witness who has appeared in accordance with the provisions of the subpoena shall not be required to remain within this state a longer period of time than the period mentioned in the certificate, unless otherwise ordered by the court. If such witness fails without good cause to attend and testify as directed in this subpoena, he shall be punished in the manner provided for the punishment of any witness who disobeys a subpoena issued from a court of record in this state.
If a person passes through this state while going to another state in obedience to a subpoena or order to attend and testify in that state or while returning therefrom, he shall not while so passing through this state be subject to arrest or the service of process, civil or criminal, in connection with matters which arose before his entrance into this state under the subpoena or order.
N.Y. Crim. Proc. Law ยง 640.10