2497. Notwithstanding any contrary provision, the indemnities due to the insured are apportioned among the prior creditors or creditors holding hypothecs on the damaged property, according to their rank and without express delegation, upon mere notice and proof by them.
However, payments made in good faith before the notice discharge the insurer.