# 11. DÉPANNAGE ET SUPPORT

# DÉPANNAGE ET SUPPORT

#### **1.PROBLÈMES COURANTS**

<table id="bkmrk-probl%C3%88mesolutionsle-"><colgroup><col></col><col></col></colgroup><tbody><tr style="background-color: rgb(131, 96, 93); color: rgb(255, 255, 255);"><td>**PROBLÈME**

</td><td>**SOLUTIONS**

</td></tr><tr><td>Le lien de paiement ne se crée pas automatiquement

</td><td>- Le module est-il activé ?
- Le montant est-il supérieur au minimum configuré ?
- Le mode de règlement correspond-il au mode configuré ?
- Les identifiants Bridge sont-ils corrects ?
- Consultez les logs Dolibarr pour les erreurs

</td></tr><tr><td>Problème : Le QR code ne s'affiche pas

</td><td>- L'option "Afficher le lien" est-elle activée ?
- L'option "Afficher le QR code" est-elle activée ?
- Le lien de paiement a-t-il bien été créé ?
- Actualisez la page (F5)

</td></tr><tr><td>Les webhooks ne fonctionnent pas

</td><td>- L'URL webhook est-elle accessible depuis Internet ?
- Le secret webhook est-il correctement configuré ?
- Le webhook est-il créé dans le tableau de bord Bridge ?
- Vérifiez les logs pour les erreurs de signature
- Testez le webhook depuis Bridge

</td></tr><tr><td>Erreur "Invalid credentials"

</td><td>- Vérifiez votre Client ID
- Vérifiez votre Client Secret
- Assurez-vous qu'ils sont actifs sur Bridge
- Regénérez-les si nécessaire depuis Bridge

</td></tr><tr><td>Le paiement est reçu mais la facture reste non payée

</td><td>- Vérifiez que l'option "Ne pas mettre à jour..." est DÉSACTIVÉE
- Vérifiez que le webhook fonctionne
- Exécutez manuellement la tâche planifiée
- Consultez les logs pour erreurs

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

#### **2.ACTIVATION DES LOGS**

Pour un diagnostic approfondi :

1. Allez dans : C**onfiguration → Divers**
2. <span style="white-space: pre-wrap;">Activez les logs : Niveau </span>**"Debug"**
3. Reproduisez le problème
4. <span style="white-space: pre-wrap;">Consultez : </span>**Accueil → Configuration → Fichiers de log système**
5. <span style="white-space: pre-wrap;">Recherchez </span>**"*****Bridge*****"**<span style="white-space: pre-wrap;"> ou </span>**"*****infras2bridge*****"**
6. Analysez les messages d'erreur

#### **3.MESSAGES D'ERREUR COURANTS**

<table id="bkmrk-%22le-montant-minimum-" style="width: 100%; border-collapse: collapse;"><colgroup><col style="width: 50%;"></col><col></col></colgroup><tbody><tr style="background-color: white;"><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top; width: 50%;">**"Le montant minimum de paiement InfraS2Bridge autorisé est X €"**

</td><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;"><span style="color: rgb(102, 102, 102);">Le montant de la facture est inférieur au minimum configuré</span>  
<span style="color: rgb(102, 102, 102);">→ Augmentez le montant ou réduisez le minimum</span>

</td></tr><tr style="background-color: rgb(249, 249, 249);"><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;">**"Le mode de règlement de la facture est différent..."**

</td><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;"><span style="color: rgb(102, 102, 102);">Le mode de règlement ne correspond pas au mode configuré</span>  
<span style="color: rgb(102, 102, 102);">→ Changez le mode sur la facture ou dans la configuration</span>

</td></tr><tr style="background-color: white;"><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;">**"Bridge API error: 401"**

</td><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;"><span style="color: rgb(102, 102, 102);">Identifiants invalides</span>  
<span style="color: rgb(102, 102, 102);">→ Vérifiez Client ID et Client Secret</span>

</td></tr><tr style="background-color: rgb(249, 249, 249);"><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;">**"Bridge API error: 404"**

</td><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;"><span style="color: rgb(102, 102, 102);">Ressource non trouvée</span>  
<span style="color: rgb(102, 102, 102);">→ Vérifiez l'ID du lien de paiement</span>

</td></tr><tr style="background-color: white;"><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;">**"Missing signature header"**

</td><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;"><span style="color: rgb(102, 102, 102);">Webhook sans signature</span>  
<span style="color: rgb(102, 102, 102);">→ Vérifiez la configuration du webhook dans Bridge</span>

</td></tr><tr style="background-color: rgb(249, 249, 249);"><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;">**"Unauthorized IP"**

</td><td style="padding: 15px; border: 1px solid rgb(221, 221, 221); vertical-align: top;"><span style="color: rgb(102, 102, 102);">Le webhook provient d'une IP non autorisée</span>  
<span style="color: rgb(102, 102, 102);">→ Vérifiez que c'est bien Bridge qui envoie le webhook</span>

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

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

**Check-list de vérification complète :**

<table id="bkmrk-%E2%98%90-module-activ%C3%A9-dans" style="width: 100%; line-height: 2;"><colgroup><col></col></colgroup><tbody><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Module activé dans Dolibarr

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Extension PHP XML installée

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Client ID configuré

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Client Secret configuré

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ URL webhook copiée dans Bridg

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Secret webhook configuré

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Montant minimum défini (&gt; 0)

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Délai de révocation défini (1-60 jours)

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Mode de règlement sélectionné

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Webhook créé dans Bridge

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Test webhook réussi depuis Bridge

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Attributs supplémentaires créés (bridge\_payment\_link, bridge\_payment\_qr)

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Tâche planifiée activée

</td></tr><tr><td style="padding: 5px; color: rgb(102, 102, 102);">☐ Permissions configurées pour les utilisateurs

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

#### **5.INFORMATIONS DE SUPPORT**

- <span style="white-space: pre-wrap;">🌐 Site web : </span>[www.infras.fr](https://www.infras.fr/)
- <span style="white-space: pre-wrap;">📧 Email : </span>[support@infras.fr](https://infras.store/ticket/new?prefill=1&module=infras2bridge)

##### ***Informations à fournir lors d'une demande de support :***

- <span style="white-space: pre-wrap;">Version de </span>***Dolibarr***
- Version du module (visible dans Configuration)
- Description détaillée du problème
- Extraits des logs (sans informations sensibles)
- Captures d'écran si pertinent