A tender may also be made after an action is brought upon any contract, of the whole sum due thereon, with the legal costs of suit incurred up to the time of tender.

(Source: R.S. 1874, p. 1054 .)