The court may make provision in any judgment of foreclosure for the adding to the amount determined in the judgment to be due, any sum or sums paid at any time after the foreclosure and prior to the expiration of the period of redemption, as taxes assessed against the property and/or the portion of the premium of any insurance policy covering any buildings located on the premises as is required to keep the policy in force until the expiration of the period of redemption, if under the terms of the mortgage it would have been the duty of the defendants determined to be personally liable to have paid the taxes or insurance premium had the mortgage not been foreclosed. In case of any such payment which is made prior to the entry of the order confirming the commissioner's report of sale, determination of the additional liability shall be made in the order. In case of any such payment made after the entry of the order proof of the payment may be made by filing with the register of deeds with whom the deed of sale is deposited, an affidavit of payment by the purchaser or some one in his behalf having knowledge of the facts together with a receipt evidencing the payment of the taxes, or, in case of insurance premiums, an affidavit of an agent of the insurance company stating the making of the payment and also what portion of the payment covers the premium for the period prior to the expiration of the period of redemption. Redemption shall not be effected after the determination, or filing of affidavit and receipt, or affidavits, as the case may be, except upon payment of the additional sum or sums. In case the property is not redeemed the taxes or premiums paid after the confirmation of sale shall not be added to or included in the deficiency judgment.
MCL 600.3145