Except when otherwise permitted by law, any banker who discounts any note, bill of exchange, or draft at a higher rate of interest than eight percent per annum, not including the difference of exchange, cannot enforce the collection of the same, except as to principal; and if any interest has been paid, the same must be deducted from the principal and judgment entered for the balance only.

(Code 1852, Β§1417; Code 1867, Β§1689; Code 1876, Β§4435; Code 1886, Β§4140; Code 1896, Β§2631; Code 1907, Β§4624; Code 1923, Β§8568; Code 1940, T. 9, Β§66.)