Payment
The payment foundation shared by modules: it collects money on behalf of other modules (booking, etc.) online (Stripe, PayPal, Mollie, HelloAsso, PayPlug) or offline (bank transfer, cheque, on site), issues numbered PDF invoices, handles refunds through credit notes and provides the accounting export. Free module: it is installed with the paid modules that need it.
Setup
- In Modules › Module settings, enable "Payment" then click "Initialise": the module creates its tables, permissions and its "Payments" menu block.
- Open Payments › Payment settings: enter the seller (invoice header), currency, numbering prefixes and legal notices.
- Enable a provider with its keys (test mode first) or an offline method with your instructions.
- In Accounts and permissions, grant "Payment: view…" (and, to trusted people, "Payment: refund").
- Make a test payment from the module that uses it and check the invoice in Payments › Payments and invoices.
Good to know
- No card data goes through your site: the customer pays on the provider page. A payment notification or return is never trusted as is: the module queries the provider itself with your secret key and checks the amount and currency.
- An online request not paid within the set time limit expires; the originating module is notified and can release its places. A payment that arrives after expiry reactivates the request.
- Transfer, cheque, on site: the customer sees your instructions; you click "Mark as paid" once you have the money. The invoice is then issued.
- Invoice: sequential number per site and per year, never reused. Full or partial refund: a credit note is issued. The module records the refund; the money is returned from the provider dashboard or by transfer.
- Accounting: "CSV export" (excl. VAT, VAT, incl. VAT, method, invoice and credit note numbers). Invoices must be kept for 10 years.
- For module developers: load
modules/paiement/api.php, then paiementCreer(), paiementDemarrer(), paiementRetour(); the result is delivered by module_<your module>_paiement_evenement() in paiement-hook.php.
Installation: Administration › Modules › Catalogue (modules and widgets), or Builder › widget library › “Widget catalogue” (widgets).