Any borrower of money or other thing may exhibit a bill in equity against the lender, and compel him to discover upon oath the money or thing really lent, and all bargains, contracts, or shifts relative to such loan, and the interest or consideration of the same; and, if it appear that more than lawful interest was reserved, the lender shall recover his principal money or other thing with six percent interest only, but shall recover no costs. If property has been conveyed to secure the payment of the debt, and a sale thereof is about to be made, or is apprehended, an injunction may be awarded to prevent such sale pending the suit. But nothing in this section shall have the effect of permitting a recovery on any contract which is void under the provisions of the following article.
W. Va. Code § 47-6-8