In the event of default by the subcontractor, to whom recourse is had under the conditions set out in article L. 8232-1, the principal shall incur the following liabilities, notwithstanding any stipulation to the contrary:
1° If the work is carried out or the services provided in his establishment or in the outbuildings thereof, the head of the undertaking is substituted for the subcontractor in respect of the employees employed by the latter for the payment of wages and holiday pay as well as for the obligations resulting from the legislation on social insurance, on accidents at work and occupational diseases and on family benefits;
2° In the case of work carried out in establishments other than those of the head of the company or work carried out by employees working at home, the head of the company is substituted for the subcontractor for the payment of wages and paid leave as well as for the payment of the family benefits contribution and the double social insurance contribution.