It shall and may be lawful for any person or persons, natural or artificial, holding lands encumbered by mortgage, judgment, recognizance or other security, so encumbered by any previous owner or owners, after such money shall have become due and payable, his or their agent or attorney, to tender to the holder of any such mortgage, judgment, recognizance or other security, such sum of money as shall or may be due by virtue thereof, to such holder or holders, including interest and costs, and to require the said holder or holders to assign and transfer, to such person or persons as the owner or owners of such incumbered premises may name, such mortgage, judgment, recognizance or other security, in the following cases:
21 P.S. § 731