Stancer est la plateforme de paiement française à bas coût. Ce module la relie à Dolibarr : vos clients paient par carte bancaire ou par prélèvement SEPA depuis leurs factures, commandes et devis, et Dolibarr enregistre le paiement, classe la facture et passe les écritures sans ressaisie.
Paiement par carte bancaire
- Lien de paiement en ligne envoyé par courriel depuis une facture, une commande ou un devis, page de paiement sécurisée 3-D Secure
- Paiement d'un devis ou d'une commande avec création automatique de la facture, paiement partiel et facture d'acompte
- Facture classée payée dès la confirmation de Stancer
- Nouvelle tentative proposée au client après un refus de carte
- Carte enregistrée pour les paiements suivants
Prélèvement SEPA
- Page publique où le client saisit lui-même son IBAN, mandat SEPA généré en PDF
- Vérification de l'IBAN via SEPAMail (France et Italie)
- Signature électronique du mandat avec le module complémentaire UptoSign ; une fois le mandat signé, les factures modèles du client passent automatiquement en prélèvement (option)
- Prélèvement automatique des factures échues, après le délai d'information du client
- Rejets SEPA traités : facture rouverte, client et administrateur prévenus, frais de rejet refacturés si vous le souhaitez
Suivi et automatisation
- Tableau de bord : chiffre d'affaires, paiements, remboursements et contestations
- Listes des paiements, reversements, remboursements et contestations synchronisées avec Stancer
- Onglet Stancer sur la fiche de chaque tiers
- Tâches planifiées : synchronisation, prélèvements, envoi des factures à la validation, relances
- Courriels prêts à l'emploi pour chaque situation : confirmation, échec, rejet, relance
Comptabilité
- Frais Stancer enregistrés sur le compte bancaire
- Reversements vers votre banque principale enregistrés comme virements de compte à compte, il ne reste que le rapprochement
- Détection et régularisation des écarts
Associations
- Paiement en ligne des cotisations et des dons
Prérequis
- Dolibarr 15 ou supérieur, PHP 7.4 ou supérieur
- Un compte Stancer et ses clés API, inscription sur stancer.com
- Modules Banque et Prélèvements activés dans Dolibarr
- Pour la signature électronique du mandat : le module UptoSign
Toutes les fonctionnalités sont détaillées dans la documentation en ligne : doc.cap-rel.fr/stancer
Un module gratuit, financé par ses utilisateurs
Ce module est gratuit et sous licence libre. Le faire évoluer, le corriger et le suivre à chaque nouvelle version de Dolibarr reste pourtant un travail de tous les jours. S'il vous rend service, participez à son financement, du montant de votre choix : contribuer au financement.
- Les mises à jour du module, sans limite de durée
- Les corrections de bogues, y compris à partir de vos remontées
Pour être prévenu automatiquement des nouvelles versions, de ce module comme de l'écosystème Dolibarr en général, abonnez-vous sur dolinews.com : nos annonces de version y sont publiées.
Support et SAV
Le support passe par notre formulaire de SAV.
Le module est gratuit, le support ne l'est pas. Vous souhaitez des personnes compétentes en face de vous : il est normal qu'elles soient payées pour ce temps. Cela vaut pour l'installation et le paramétrage de votre Dolibarr, la formation de vos équipes, les développements spécifiques et le diagnostic d'un environnement que nous n'hébergeons pas.
Un bogue reproductible du module est corrigé sans frais, dans une prochaine mise à jour.
Avant d'installer
- Vérifiez les versions de Dolibarr et de PHP indiquées en haut de cette fiche : au-delà, le module n'est pas testé
- Les modules se déploient depuis Accueil > Configuration > Modules > Déployer un module externe, ce qui suppose un répertoire custom actif sur votre installation
- Si le module s'appuie sur un service en ligne, l'abonnement à ce service est distinct du module : il est alors précisé plus haut
Éditeur
Module développé par CAP-REL, sous licence GPL-3.0-or-later. Documentation en ligne sur doc.cap-rel.fr.
Historique des versions
2.0.26 -- 2026-11-03
- Switch template invoices to SEPA direct debit as soon as the customer signs the mandate
- Join to the invoice email the files other modules attach, as a reseller consumption statement
- See each refused, failed or disputed Stancer payment once in the invoice events
- See each successful Stancer payment in the invoice events, as Stripe debits do
- Let other modules space retries or suspend services from AC_PAYMENT_STANCER_KO
- Mail the administrator only once about a failed payment, not on every daily refresh
- Send the customer failure email and the KO trigger when a card payment is refused
- Pay a quote, an order or an invoice with Stancer when the customer only left a mobile
- Reach overseas customers on their mobile, even when their thirdparty country is France
- Keep invoices paid again after a failed SEPA debit closed, instead of "started" with 0 left
- See in the scheduled job result which fully paid invoices could not be classified paid
- Read clearer English labels and messages across the module (thanks to contrib from Laurent)
2.0.24 -- 2026-09-24
- Send the payment link from an order or an invoice (thanks to contrib from Axel)
- Allow a card payment without 3-D Secure, document by document (thanks to contrib from Axel)
- Let a customer pay again after a refused card payment (thanks to contrib from Axel)
- Show why a card payment could not start, instead of a blank page (thanks to contrib from Axel)
- Say on the return page what happened, and that nothing was charged (thanks to contrib from Axel)
- Take the payer email or mobile from the contacts too (thanks to contrib from Axel)
- Fix the delayed mail at invoice validation, never queued
- Report a payment link that could not be mailed
- Frame the Stancer payment button with its brand
- Translate the new keys into the five other languages
- Keep the customer account on a card saved after payment (thanks to contrib from Nicolas)
- Fix a setup page warning on an unreadable document model row (thanks to contrib from Nicolas)
- Record a card payment on its own invoice, order or proposal, never on one named by the URL
- Charge the amount Dolibarr computes for an invoice, order or proposal, not the URL one
- Close an invoice as paid only when its payments really cover it
- Ask for the write permission and a token before any debit, refund or bank booking
- Keep card numbers, CVC and the payment security key out of the logs
- Verify the TLS certificate of the Stancer API
- Keep payments, refunds, disputes and collections of each entity apart
- Send the delayed invoice validation mails again, the job always failed
- Record a forced SEPA payment as a direct debit, not as a card payment
- Book donation and event payments made with Stancer on the Stancer bank account
- Refuse a second copy of the same payout, refund or dispute
- Let a user who created Stancer records be deleted
- Ship the raw Stancer API window that the package left out
- Translate the messages shown when a payment starts
2.0.23 -- 2026-09-05
- Fix payments recorded nowhere when the customer paid from a link received by mail
- Read the payment id and the currency from the payment record instead of the browser session
- Refuse an API call built with an empty id instead of letting it query the whole payment list
- Remember on the payment record that it only covers a deposit ("30% on order")
- Fix a false "payment already recorded" that could stop the return page
- Fix the missing stancer-card row that hid an already existing Stancer customer on the thirdparty tab
- Mail tracking id now follows the paid object: invoice, order, proposal, member or donation
- Detect enabled modules on every supported Dolibarr version
- The failure mail sent to the administrator now names the Stancer payment and its status
- Add tests
2.0.22 -- 2026-08-24
- Appli dolibarr rules for free community module
- -> https://wiki.dolibarr.org/index.php/Modules_-_Rules_for_community_modules
2.0.20 -- 2026-08-24
- Fix sql requests on admin parts (repair / cleanup)
- better log collectors for user support
- enhance user doc
2.0.18 -- 2026-07-20
- Fix fees on operations
- Add values guards, htmlfilters, xss checks
- Add repair and saferty pages for admin
- Enhance logs collect system
2.0.14 -- 2026-06-15
- Dedup for all rtpe of documents
- Better changelog parser (about page)
- Add more tests
- Fix bad thirdparty links
- Better css
- Add a re-audit system for muti-payments2.
2.0.12 -- 2026-05-20
- Change pseudo-stripe fake mode
- New experimental option "group sepa mandate same day" to compress fees
- better handler for payment on order and propal
- unique syslog prefix to make easy to grep logs
- better anti doublon mode
- mass action on payment list to force refresh data from api
- new audit page
- fix miss attributions on group payment
- fix duplicate mails sent
- add a check on module setup to avoid risk of invert private / public keys
2.0.10 -- 2026-05-04
- Add dolibarr tracking number in mails
- Skip doaction if object is not linked to stancer
- Fix url links into mails
- Split big files into short ones
- Add tests
- Display debug messages json + fix all case of sepa refund
- Better auto send emails
- Use history to avoid multi send mails for payout info
2.0.8 -- 2026-04-13
- Fix Dolibarr 23 compat
- Unify mail send system
- Add checks for Adherent payments
- Normalise syslogs prefix to make it easy to grep
- Remove delete rights
- Enhance about box
- Fix phpdoc comments
- Better phpstan checks
- Update langs files
2.0.6 -- 2026-03-31
- Avoid duplicate mails in case of problem
- New option to allow retry pay with stancer even if there was a previous payment problem with them
- Update user doc
2.0.4 -- 2026-03-20
- Full migration to Stancer API v2 (all endpoints)
- New stancer_disputes model and DB table for dispute tracking
- New stancer_api.class.php refactored for API v2 endpoints
- New disputes list page (stancer_disputes_list.php) with filters and status display
- Automatic invoice reopen when a dispute is lost (status: lost, accepted, out_of_time, not_contestable)
- Reverse payment (negative amount) created on invoice reopen to restore correct "amount due"
- Customer notification on SEPA rejection using configurable Dolibarr email template with styled layout (blue header), payment link, and PDF attachment
- Admin notification email now includes: customer name, invoice ref (clickable link), amount, dispute type, status, SEPA code
- Auto-creation of rejection fee invoice (configurable product, prevents SEPA re-collection loop)
- ActionComm-based deduplication to prevent duplicate processing across multiple refreshes
- Invoice card now shows dispute status and SEPA rejection code alongside payment status
- Refunds list page improvements
- Refund sync from API v2
- New styled email layout (blue header, company name, responsive HTML) for all customer-facing emails
- Cron task email sending improvements
- Better substitution variable support in email templates
- SEPA rejection settings page: fee amount, auto-apply toggle, product selection, CC email
- Updated translations (FR, EN, DE, ES, IT, NL)
- Removed dependency on Stancer PHP library (pure REST via getURLContent())
- PHPStan improvements
- Unit tests updated for API v2
2.0.2 -- 2026-03-18
- New version - no cost, this module is not sell anymore
- but maintenance is active, that is our main payment system !
1.2.136 -- 2026-01-19
- Partial pay (deposit) on propal ... (end)
1.2.134 -- 2026-01-09
- Partial pay (deposit) on propal ... (in progress)
1.2.133 -- 2026-01-06
1.2.132 -- 2025-12-09
- New back of payment link for propal
- Hide payment button if "retry payment"
- New refund process on credit note
1.2.130 -- 2025-09-09
- Fix sql request on auto pay cron task thanks to Florian Koch
1.2.128 -- 2025-06-17
- Fix undef vars
- Fix some php warnings
- Force type of a var
1.2.124 -- 2025-03-26
- migrate from conf->global to getDolGlobalString
- cleanup config from sandbox when switching to prod mode
- new option for automatic payment via SEPA (invoices linked to contract or no)
1.2.121 -- 2025-03-11
- fix auto sign mandate via uptosign
1.2.119 -- 2025-02-14
1.2.118 -- 2025-02-14
- add new function stancerShowOnlineIBANDataForCustomer
- partial payment of order and auto create paid deposit invoice
1.2.117 -- 2024-12-05
- Massive code cleanup thanks to phpstan level 2
- Option "stancer add fees on each payment" is back thanks to ops sponsorring
1.2.116 -- 2024-11-13
- Fix: fetch call to be dolibarr 20 compatible (next)
1.2.114 -- 2024-11-07
- Fix: update CB card number / handle expiry case
Historique tronqué, versions intermédiaires non affichées : 48
La première version de ce module date du 22/01/2023.
0.0.0
- Start dev time - 2023-01-22
Le journal des modifications complet est consultable dans la page "À propos" du module, une fois celui-ci installé.