Datos Fiscales CFDI for WooCommerce

Description

Customers in Mexico often need an electronic invoice (CFDI) for their purchases. This plugin adds an “I need an invoice (CFDI)” checkbox to the WooCommerce checkout. When the customer ticks it, the plugin asks for the five fields required by CFDI 4.0 and validates them with the SAT rules:

  • RFC (tax ID): checks the structure and the embedded date, detects individuals (13 characters) and companies (12), and rejects the generic RFC.
  • Legal name: converted to upper case and without the corporate suffix (“S.A. de C.V.”), as the SAT requires.
  • Tax regime (c_RegimenFiscal catalog), checked against the type of taxpayer.
  • Tax ZIP code (5 digits).
  • CFDI use (c_UsoCFDI catalog), checked against the regime (for example, personal deductions are only valid for individuals).

The data is shown on the order screen, in an “Invoice” column of the orders list, in order emails and in My Account. From WooCommerce Datos fiscales CFDI the store can download a CSV with every order that requested an invoice in a date range, ready to be stamped in any invoicing system.

Works with the block checkout (default) and the classic checkout, and is compatible with High-Performance Order Storage (HPOS). Registered customers get their tax data pre-filled from their last purchase.

The user interface is in Spanish, because it is meant for stores in Mexico.

Privacy

The plugin does not send any data to external services. Tax data is stored in the order and, for registered customers, in their user profile.

FAQ

Does it stamp (timbrar) the invoices?

This plugin collects and validates the data. To stamp the invoices, export the CSV to your invoicing system.

If you prefer to stamp from WooCommerce, the optional Pro version connects to Facturapi (you need your own Facturapi account) to stamp the CFDI from the order or automatically, email the PDF and XML to the customer, cancel invoices, offer a self-invoicing portal and issue the monthly global invoice. The free plugin keeps working on its own: nothing in it is locked.

Does it check that the RFC is registered with the SAT?

No. It validates the format, the date and the consistency with the tax regime and CFDI use.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Datos Fiscales CFDI for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.2.0

  • Settings page: information box about the optional Pro version (hidden when Pro is active).
  • Validation: the CFDI use is now checked against the full tax-regime table of the SAT catalog (catCFDI 4.0, November 2026), so combinations the SAT rejects when stamping (for example regime 608 with G03) are caught at checkout.
  • Fix: regime 622 is only for companies (persona moral), as in the SAT catalog.
  • Fix: tax data now shows on the thank-you page with block themes.
  • Fix: tax data in plain-text emails.
  • Fix: with data from a previous purchase, the “I need an invoice” box comes checked so the block checkout keeps the prefilled values.
  • Fix: classic checkout show/hide script works with block themes.
  • Text domain now matches the WordPress.org slug (datos-fiscales-cfdi-for-woocommerce), so translations can be delivered.

0.1.0

  • First release.