843. The cost of such work or materials is paid, on the order of the municipal inspector, by the secretary-treasurer of the corporation, and is recovered by the corporation from the persons in default, with 20 percent over and above the amount thereof, and costs, by an ordinary action.