If the court finds that the customer has complied with subsection (a), it shall order the Government authority to file a sworn response, which may be filed in camera if the Government includes in its response the reasons which make in camera review appropriate. If the court is unable to determine the motion or application on the basis of the parties’ initial allegations and response, the court may conduct such additional proceedings as it deems appropriate. All such proceedings shall be completed and the motion or application decided within seven calendar days of the filing of the Government’s response.
If the court finds that the applicant is not the customer to whom the financial records sought by the Government authority pertain, or that there is a demonstrable reason to believe that the law enforcement inquiry is legitimate and a reasonable belief that the records sought are relevant to that inquiry, it shall deny the motion or application, and, in the case of an administrative summons or court order other than a search warrant, order such process enforced. If the court finds that the applicant is the customer to whom the records sought by the Government authority pertain, and that there is not a demonstrable reason to believe that the law enforcement inquiry is legitimate and a reasonable belief that the records sought are relevant to that inquiry, or that there has not been substantial compliance with the provisions of this chapter, it shall order the process quashed or shall enjoin the Government authority’s formal written request.
A court ruling denying a motion or application under this section shall not be deemed a final order and no interlocutory appeal may be taken therefrom by the customer. An appeal of a ruling denying a motion or application under this section may be taken by the customer (1) within such period of time as provided by law as part of any appeal from a final order in any legal proceeding initiated against him arising out of or based upon the financial records, or (2) within thirty days after a notification that no legal proceeding is contemplated against him. The Government authority obtaining the financial records shall promptly notify a customer when a determination has been made that no legal proceeding against him is contemplated. After one hundred and eighty days from the denial of the motion or application, if the Government authority obtaining the records has not initiated such a proceeding, a supervisory official of the Government authority shall certify to the appropriate court that no such determination has been made. The court may require that such certifications be made, at reasonable intervals thereafter, until either notification to the customer has occurred or a legal proceeding is initiated as described in clause (A). 
The challenge procedures of this chapter constitute the sole judicial remedy available to a customer to oppose disclosure of financial records pursuant to this chapter.