# Prérequis et installation

#### **1.PRÉREQUIS TECHNIQUES**

***Côté serveur***

- - **Dolibarr :**<span style="white-space: pre-wrap;"> Version compatible (voir changelog)</span>
    - **PHP :**<span style="white-space: pre-wrap;"> Version compatible avec votre Dolibarr</span>
    - **Extension PHP XML :**<span style="white-space: pre-wrap;"> Obligatoire pour lire changelog.xml</span>
    - **Accès HTTPS depuis Internet :**<span style="white-space: pre-wrap;"> Pour recevoir les webhooks Bridge</span>
    - **URL publique :**<span style="white-space: pre-wrap;"> Votre Dolibarr doit être accessible depuis Internet</span>

***Compte Bridge***

- - Compte Bridge actif (https://bridgeapi.io/)
    - Client ID et Client Secret générés
    - Accès au tableau de bord Bridge

#### **2.INSTALLATION DU MODULE**

***Étape 1 : Déploiement des fichiers***

1. Téléchargez l'archive du module InfraS2Bridge
2. Décompressez l'archive
3. <span style="white-space: pre-wrap;">Placez le dossier </span>`<span class="editor-theme-code">infras2bridge</span>`<span style="white-space: pre-wrap;"> dans </span>`<span class="editor-theme-code">htdocs/custom/</span>`
4. Vérifiez les permissions : le serveur web doit pouvoir lire les fichiers

***Étape 2 : Activation du module***

1. <span style="white-space: pre-wrap;">Connectez-vous à </span>***Dolibarr***<span style="white-space: pre-wrap;"> en tant qu'administrateur</span>
2. <span style="white-space: pre-wrap;">Allez dans </span>**Accueil → Configuration → Modules/Applications**
3. <span style="white-space: pre-wrap;">Recherchez </span>**"*****InfraS2Bridge*****"**<span style="white-space: pre-wrap;"> ou </span>**"Bridge"**
4. <span style="white-space: pre-wrap;">Cliquez sur </span>**"Activer"**

-&gt; Le module créé automatiquement :

- - - - Les tables de base de données nécessaires
            - Les attributs supplémentaires sur les factures et devis
            - Les entrées de menu
            - La tâche planifiée

#### **3.VÉRIFICATION DE L'INSTALLATION**

<table id="bkmrk-%C3%89l%C3%A9mentcheminstatut-" style="width: 100%; border-collapse: collapse; margin-top: 15px;"><colgroup><col style="width: 202px;"></col><col style="width: 353px;"></col><col></col></colgroup><tbody><tr style="background-color: rgb(245, 245, 245);"><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); font-weight: 600; color: rgb(51, 51, 51);">Élément

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); font-weight: 600; color: rgb(51, 51, 51);">Chemin

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); font-weight: 600; color: rgb(51, 51, 51);">Statut attendu

</td></tr><tr style="background-color: white;"><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">Module activé

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">**Configuration → Modules**

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(76, 175, 80); font-weight: 600;"><span style="color: rgb(0, 0, 0);">Activé</span>

</td></tr><tr style="background-color: rgb(249, 249, 249);"><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">Extension XML

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">**Outil → InfraS-2 → InfraS2Bridge → Changelog**

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(76, 175, 80); font-weight: 600;"><span style="color: rgb(0, 0, 0);">Version affichée</span>

</td></tr><tr style="background-color: white;"><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">Menu visible

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">**Menu Outils → InfraS-2 → InfraS2Bridge**

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(76, 175, 80); font-weight: 600;"><span style="color: rgb(0, 0, 0);">Menu présent</span>

</td></tr><tr style="background-color: rgb(249, 249, 249);"><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">Attributs factures

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(102, 102, 102);">**Configuration → Attributs supplémentaires → Factures**

</td><td style="padding: 10px; border: 1px solid rgb(221, 221, 221); color: rgb(76, 175, 80); font-weight: 600;"><span style="color: rgb(0, 0, 0);">bridge\_payment\_link, bridge\_payment\_qr</span>

</td></tr></tbody></table>

#### **4.ACCÈS AU MODULE**

Une fois installé, le module est accessible via :

- **Menu Outils → InfraS-2 → InfraS2Bridge**
    - Changelog / Support
    - Paramètres
- **Menu Banque → InfraS2Bridge**
    - Liste des liens de paiement
- **Onglets sur les factures**<span style="white-space: pre-wrap;"> (après configuration)</span>