Section 7. That all insurance companies, which shall, within thirty days after the approval of this act, pay into the treasury of this commonwealth the amount of money claimed by the commonwealth for taxes upon their gross premiums, for the period of time between the twentieth day of March, Anno Domini one thousand eight hundred and seventy-seven and the first day of January, Anno Domini one thousand eight hundred and eighty-one, together with interest upon the same, shall be liable, from and after the first day of January, Anno Domini one thousand eight hundred and eighty-one, during the continuance of this act, to no taxes upon their premiums, except upon such as were or shall be received from business transacted within this commonwealth.