| 开发者 | tropratik |
|---|---|
| 更新时间 | 2026年7月28日 22:22 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
tropratik_ef_invoice field (invoice number, generation date, client type, Chorus Pro status and flow id, PDF SHA-256), for your integrations and exports.tropratik-e-facture).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.
Une présentation détaillée du module et de ses fonctionnalités est disponible sur notre site : Facturez vos commandes WooCommerce au format Factur-X.
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.
/wp-content/plugins/, or install it from the WordPress "Plugins" screen.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.
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.
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.
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.
Yes, the plugin is compatible with High-Performance Order Storage (HPOS) and with the classic order storage mode.
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.
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.
0225 with SIREN, SIREN+SIRET, SIREN+Suffix or SIREN+SIRET+RoutingCode formats. Configurable in the emetteur settings and at checkout for B2B/public-sector orders.GlobalID (BT-46) now included in the XML for B2B and public-sector orders (SIREN with scheme 0225), improving automatic routing on PDP platforms.GlobalID (BT-29) now included (SIREN with scheme 0225).E (Exempt) when the seller is in franchise en base (tva_assujetti = non), regardless of the buyer\'s VAT status.$wpdb->prepare() with %i identifier placeholder).0009 (the standard French identifier) instead of the email with scheme EM, which was not in the official EAS code list and caused some platforms (PDP/PPF) to report the field as missing.0009 for B2B/public-sector orders. For individual buyers, BT-49 is omitted (it is an optional field in EN 16931 and there is no valid EAS scheme for a private email address).bacs), the seller IBAN and BIC are now included in the Factur-X XML (BT-84 and BT-86), read from the payment gateway settings. All other payment methods now use the correct UNTDID 4461 code without triggering the BR-61 violation.VATEX-EU-O, VATEX-EU-IC, VATEX-EU-G) matching the exemption reason configured in the plugin settings.migrate_1_2() now creates the tropratik_ef_invoice_number table before attempting to add columns. This prevents a silent failure when upgrading from v1.0.x to v1.1.x via the WordPress update button (without deactivating and reactivating the plugin first). No action required on existing installations.Tropratik_EF_Invoice_Number::get_sequence() was missing from the published 1.1.1 package due to a missing SVN commit before tagging. No database change or manual action required.number to the new formatted_number key. If you read this field in an integration, update the key accordingly.number key now holds the legal numbering sequence position as an integer (for example 11), distinct from the internal row id.file_slug (the PDF file name without extension) and file_name (with the .pdf extension). The server file path is still never exposed.facturx_profile, the Factur-X profile actually used to generate the invoice (MINIMUM, BASICWL, BASIC, EN16931, EXTENDED). This value is now stored per invoice; invoices generated by earlier versions return null. A database column is added automatically on update, no action required.tropratik_ef_invoice field added to the WooCommerce REST API order response (invoice number, generation date in site time and UTC, client type, Chorus Pro status and flow id, PDF SHA-256). Read-only, never exposes the server file path.client_type value in the REST API is now returned in English (individual, business, public_sector). The French labels shown in the admin UI and on the PDF invoice are unchanged (rendered through the plugin's translations).