21-47-8. Dismissal of complaint on payment into court of installments then due. Whenever an action shall be commenced for the foreclosure of a mortgage upon which there shall be due any interest or any portion or installment of the principal, and there shall be other portions or installments to become due subsequently, the complaint shall be dismissed upon the defendant bringing into court at any time before entry of judgment the principal and interest due, with costs and disbursements.
Source: CCivP 1877, § 626; CL 1887, § 5440; RCCivP 1903, § 666; RC 1919, § 2906; SDC 1939 & Supp 1960, § 37.2907.