Linux 软件免费装
Banner图

Tropratik e-Facture

开发者 tropratik
更新时间 2026年7月15日 20:07
PHP版本: 8.1 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce e-invoicing factur-x chorus pro facturation electronique

下载

1.0.0 1.1.0 1.1.1 1.1.2

详情介绍:

Tropratik e-Facture generates, for every WooCommerce order, a PDF invoice that can be sent automatically by e-mail to your customer. The plugin also provides optional transmission to Chorus Pro, the French State platform. This transmission is never mandatory: you can use Tropratik e-Facture solely to produce electronic invoices in a format compliant with the French reform, even when you invoice businesses (B2B), without sending anything to Chorus Pro. As of today, Chorus Pro only accepts invoices addressed to the public sector. The plugin is designed to evolve and connect to the other approved platforms (PDP/PPF) as they open, within the framework of the French electronic invoicing reform. Beyond the classic PDF, Tropratik e-Facture turns your orders into genuine electronic invoices compliant with the European Factur-X (EN 16931) standard: a human-readable PDF embedding the structured XML data required by the administration. The plugin is designed for the French electronic invoicing reform (2026): Key features Prerequisites Using Chorus Pro requires steps independent from this plugin, carried out once:
  1. Creation of an account on PISTE (the French State API portal) and retrieval of the OAuth2 credentials (Client ID / Secret).
  2. Creation of a Chorus Pro technical account (qualification then production).
  3. Declaration of the API connection for your organization.
The plugin provides, in its "Chorus Pro" tab, a step-by-step guide and test buttons to validate each step. Trademarks and affiliation Tropratik e-Facture is an independent product, not affiliated with nor endorsed by the organizations or vendors mentioned. The names Chorus Pro and PISTE (French State / AIFE trademarks), Factur-X (FNFE-MPE trademark) and WooCommerce (trademark of Automattic Inc.) are used only for descriptive purposes, to indicate the plugin's compatibility and interoperability. All trademarks cited belong to their respective owners. Published by Tropratik.fr En français Tropratik e-Facture génère, pour chaque commande WooCommerce, une facture PDF qui peut être envoyée automatiquement par e-mail à votre client. Au-delà du PDF classique, le module transforme vos commandes en véritables factures électroniques Factur-X (EN 16931) : un PDF lisible embarquant les données structurées XML exigées par l'administration. Le module assure aussi, de façon optionnelle, la transmission à Chorus Pro (plateforme de l'État) via l'API PISTE, en bac à sable comme en production. Cette transmission n'est jamais obligatoire : vous pouvez l'utiliser uniquement pour produire des factures conformes à la réforme française de la facturation électronique (2026), y compris en B2B, sans rien envoyer à Chorus Pro. Principales fonctionnalités : génération Factur-X / ZUGFeRD (PDF/A-3), envoi manuel ou automatique à Chorus Pro, périmètre d'envoi configurable (B2G / B2B / B2C), numérotation personnalisable, personnalisation de l'apparence et modèle surchargeable depuis le thème, connexion directe ou via proxy VPS dédié (contournement d'un blocage WAF 403), outils de test des identifiants, secrets chiffrés en base (libsodium / OpenSSL), exposition des données de facture dans l'API REST WooCommerce (champ tropratik_ef_invoice en lecture seule sur chaque commande), compatibilité HPOS et prêt pour la traduction. L'utilisation de Chorus Pro nécessite des démarches indépendantes réalisées une seule fois : compte PISTE (identifiants OAuth2), compte technique Chorus Pro (qualification puis production) et déclaration du raccordement API. L'onglet « Chorus Pro » fournit un guide pas à pas et des boutons de test pour valider chaque étape. Tropratik e-Facture est un produit indépendant, non affilié ni approuvé par les organismes cités. Les marques Chorus Pro, PISTE, Factur-X et WooCommerce ne sont utilisées qu'à des fins descriptives et appartiennent à leurs détenteurs respectifs.

安装:

  1. Make sure WooCommerce is installed and active, and that your server runs PHP 8.1 or higher.
  2. Upload the plugin folder to /wp-content/plugins/, or install it from the WordPress "Plugins" screen.
  3. Activate the plugin through the "Plugins" menu.
  4. Go to WooCommerce → Tropratik e-Facture to configure:
  5. the Issuer & Options tab (your legal information and the numbering),
  6. the Invoice appearance tab (logo, colors, template),
  7. the Chorus Pro tab (PISTE credentials, technical account, proxy and automatic sending).
  8. Use the test buttons in the "Chorus Pro" tab to validate your credentials before the first transmission.

屏幕截图:

  • WooCommerce orders list: the "Facture / Chorus Pro" column shows, for each order, the invoice status and its transmission to Chorus Pro (Sent, Accepted), with one-click actions.
  • "Invoice appearance" tab: logo, colors and template override via the theme.
  • "Chorus Pro" tab: configuration of the PISTE credentials, the technical account and the VPS proxy, with test buttons.

升级注意事项:

1.1.1 The REST API formatted invoice number moves from number to formatted_number; number now holds the integer numbering sequence, and a new facturx_profile field is exposed. This version adds a database column automatically (no action required). Update your integrations if you read these fields. 1.1.0 Adds a read-only invoice field to the WooCommerce REST API order response and fixes the issuer name position on the PDF when no logo is set. No database change and no configuration required. 1.0.0 Initial release of the plugin.

常见问题:

Does the plugin send my invoices to Chorus Pro automatically?

Only if you enable the "Automatic sending" option in the Chorus Pro tab. By default, only invoices addressed to the public sector (B2G) are sent. Manual sending remains always available from the orders list.

Are my invoices compliant with the 2026 reform?

Invoices are generated in the Factur-X format compliant with the European standard EN 16931, the foundation of the French reform. The plugin is designed to evolve towards the approved platforms (PDP/PPF) as the B2B flows open.

My host is blocked by PISTE (403 error). What can I do?

The Chorus Pro tab offers a "Via VPS proxy" connection. You install a proxy on a dedicated server, enter its parameters in the plugin, then use the "Test proxy connection" button to verify that it correctly relays requests to PISTE. This test depends neither on the PISTE credentials nor on the technical account.

Can I customize the invoice layout?

Yes. The "Invoice appearance" tab lets you set the logo, colors and font. To go further, you can download the invoice.php template, modify it, then place it in your theme (for example wp-content/themes/your-theme/tropratik-e-facture/invoice.php): it will replace the default template. This theme override follows the standard WooCommerce practice and survives plugin updates.

Is the plugin HPOS compatible?

Yes, the plugin is compatible with High-Performance Order Storage (HPOS) and with the classic order storage mode.

Can I retrieve the invoice data through the WooCommerce REST API?

Yes. For every order, the plugin adds a read-only tropratik_ef_invoice field to the WooCommerce REST API response (for example GET /wp-json/wc/v3/orders/{id}). It contains the invoice number, the generation date (site time and UTC), the client type (in English: individual, business or public_sector), the Chorus Pro status and flow id, and the SHA-256 hash of the PDF. The field is null when no invoice exists yet, is never writable, and never exposes the server file path. Access requires the standard WooCommerce REST API authentication and read permission on orders.

How are my credentials and sensitive passwords stored?

The most sensitive secrets — the PISTE client_secret, the Chorus Pro technical passwords and the proxy password — are never kept in clear text in the database. They are encrypted at rest using libsodium (with an OpenSSL AES-256-GCM fallback) and decrypted only when contacting the APIs. This protection limits exposure if the database alone leaks (stolen SQL backup, SQL injection from another plugin, etc.). The encryption key is derived from the security salts of your wp-config.php file. Important: if these salts are regenerated, the secrets will have to be re-entered in the "Chorus Pro" tab. To make the key independent from the salts (useful during a migration or a site restore), define a dedicated constant in wp-config.php: define( 'TROPRATIK_EF_ENCRYPTION_KEY', 'a-long-random-and-secret-string' ); Credentials already stored in clear text by an earlier version are encrypted automatically the next time the form is saved, with no action required on your part.

更新日志:

1.1.2 1.1.1 1.1.0 1.0.0