Trial and judgment in foreclosure suit.If upon trial in such action the court shall find the facts set forth in the complaint to be true, it shall ascertain the amount due to the plaintiff upon the mortgage debt or obligation, including interest and costs, and shall render judgment for the sum so found due, and order that the same be paid into court on or before the first day of the next term of t