Linux 软件免费装
Banner图

Factova – VeriFactu: AEAT invoices for WooCommerce

开发者 alvaroalon96
更新时间 2026年12月4日 04:09
PHP版本: 8.2 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

facturas woocommerce invoices facturacion verifactu aeat

下载

0.2.10 0.3.1 0.3.2 0.3.3 0.3.4 0.3.0 0.3.5

详情介绍:

Factova brings VeriFactu to your WooCommerce shop. It issues the invoice of every order when it is paid (or when it is completed, if you prefer), adds the tax QR code and sends the billing record to the AEAT (Agencia Tributaria, the Spanish Tax Agency, "Hacienda"), as the VERI*FACTU system requires. Step-by-step manual with real screenshots, in Spanish: https://factova.es/manual/ https://www.youtube.com/watch?v=2Z4o_pwG-A8 It is free and complete: there is no limit on the number of invoices or orders, and it does on its own everything VeriFactu requires. Your shop talks directly to the AEAT with your own electronic certificate: there is no intermediary service and no fee per invoice. What VeriFactu means for your shop VeriFactu is the mode of the Spanish billing systems regulation (Royal Decree 1007/2023) in which the invoicing software sends every billing record to the AEAT when the invoice is issued. For a WooCommerce shop this means: Factova does all of this inside WooCommerce, from the order to the PDF your customer receives. What Factova does Who it is for Factova is for one taxpayer (a company or a self-employed person) with its tax domicile in the Spanish common territory, that sells with VAT (IVA) in a WooCommerce shop and wants to comply with VeriFactu without leaving WordPress. It works only in the VERI*FACTU mode. How it works
  1. Install Factova and open Factova – VERIFACTU* in the admin menu (next to WooCommerce).
  2. The wizard asks for your tax data, your electronic certificate and your VAT configuration, and asks for your consent before connecting to the AEAT.
  3. Before you start selling (or on a staging copy of your shop), try it in the AEAT test environment with test orders and check the invoices with your adviser.
  4. Switch to production before your first real sale. From then on, every order gets its invoice when it is paid (or when it is completed, if you chose that), its billing record is sent to the AEAT and the customer receives the PDF with the QR code.
  5. When you refund an invoiced order, Factova prepares its corrective invoice and you issue it with one click from the order or from Pending; for a cancelled order, Factova proposes the corrective invoice in Pending. The Overview screen tells you if anything needs your attention.
Who it is not for Factova is not for: The setup wizard asks about these three cases and does not let you continue in them. Factova does not calculate the equivalence surcharge (recargo de equivalencia) either. If you sell to retailers under the surcharge, the setup wizard tells you so, and Factova holds those orders in Pending, with an explanation, instead of issuing a wrong invoice. Responsibility and warranty Factova is distributed without any warranty, under the GPL. The correct issuing of your invoices and your tax configuration (VAT rates, exemptions, regimes) are your responsibility: review them with your tax adviser. The plugin proposes a mapping for the usual rates, but it cannot know whether a given operation is exempt or taxed. Factova does not replace your adviser nor your obligation to keep your invoices. Keep it updated and do not edit its database tables. Responsible declaration Every version includes its responsible declaration of the billing system (art. 13 of Royal Decree 1007/2023 and art. 15 of Order HAC/1177/2024), in Factova – VERIFACTU > About* and as a PDF inside the plugin. Public copy: https://factova.es/factova/declaraciones/ Factova is not approved or certified by the AEAT: VeriFactu has no approval process; the producer declares compliance. No advertising, no tracking Factova sends no data to the plugin author. It shows no advertising on the Dashboard, in orders or in notices. Everything that needs your attention is listed in its Overview; outside its own screens it only shows a notice on the WooCommerce order screens when issuing is stopped, and you can hide it. The PDFs and the emails to your customers carry no advertising. Factova Pro Factova is complete and compliant without the Pro version. Factova Pro is a paid extension, installed separately, with features for shops with more volume, several companies and accounting firms: Plans from 99 €/year, with a 14-day trial without a card. More information at https://factova.es/pro/

安装:

  1. Install and activate WooCommerce 9.9 or later.
  2. Install Factova from Plugins > Add Plugin and activate it.
  3. Open Factova – VERIFACTU* in the admin menu and follow the wizard: requirements, scope, issuer data, electronic certificate (.p12 or .pfx), environment (test or production), tax configuration, consent and connection test.
  4. Start in the AEAT test environment with test orders, before you open your shop or on a staging copy. When you have reviewed everything with your adviser, and always before your first real sale, switch to production: test invoices have no tax validity and do not replace real invoices. Once in production you cannot go back to test.
Until you finish the wizard, Factova does not connect to any external service and issues no invoices: orders stay pending and can be invoiced later. Video walkthrough of the installation and the wizard (in Spanish): https://www.youtube.com/watch?v=UYdw3qED-X4

屏幕截图:

  • Block checkout: the customer asks for a complete invoice and types the tax ID, which is checked before the order is placed.
  • Order confirmation with the "Order invoice" block: the link to the PDF once the invoice is issued or, as here with a bank transfer not yet received, a note that the invoice will arrive by email.
  • Overview: everything that needs your attention in a single list, with a button for each item, and the switch to production.
  • Invoices: list with the type, the customer, the order and the AEAT status; corrective invoices link to the invoice they correct.
  • Invoice detail: its AEAT status in one sentence, the tax breakdown and the answer of the AEAT.
  • Pending: every waiting order says what to do, with the corrective invoice of a cancelled order already proposed.
  • WooCommerce order with its invoice, the corrective invoice of a refund issued with one click and their AEAT status.
  • Setup wizard: tax configuration of the VAT rates and when the invoice is made.
  • Setup wizard: express consent before anything is sent to the AEAT, and the connection test.

升级注意事项:

0.3.5 A copy of the shop also holds the orders that look like real sales. A notice when invoices are late to be sent, with the real cron line to copy. 0.3.4 In test, orders that look like real sales wait in Pending until you go to production or confirm they are tests. Fixes the tax ID field of the block checkout with WooCommerce 10.0. WooCommerce 9.9 or later. 0.3.3 A small card at the end of the Overview, shown once after 10 invoices accepted in production and two weeks of use, with links to leave an opinion and to the support forum. 0.3.2 Help under the tax ID field of the checkout, and a simpler tax breakdown in the PDF of invoices without equivalence surcharge. 0.3.1 Factova moves to its own menu, "Factova – VERI*FACTU", next to WooCommerce, with a number for what needs your attention. 0.3.0 Refunds wait in Pending with their corrective invoice ready to issue with one click; Factova no longer calculates the equivalence surcharge and removes its rates from WooCommerce. 0.2.10 FACTOVA_SECRET becomes optional; a key change no longer deletes a readable certificate. 0.2.9 First public release.

常见问题:

What is VeriFactu (VERI*FACTU)?

It is the mode of the Spanish billing systems regulation (Royal Decree 1007/2023, often called the "ley antifraude", the anti-fraud law) in which the software sends every billing record to the AEAT when the invoice is issued. It is also written "veri factu" or "sistema verifactu".

Is VeriFactu mandatory?

The regulation applies to companies and self-employed people in the Spanish common territory who issue invoices with software, with exceptions such as the taxpayers under the SII. Their software must meet the requirements of the regulation in one of two modes: VERIFACTU, which sends every record to the AEAT, or NO VERIFACTU, which keeps signed records and an event log. Whether and from when it applies to you is something to confirm with your tax adviser.

When does it apply? Has it been postponed?

The dates are set by Royal Decree 1007/2023 and have already been changed more than once. We do not write them here because they can change again: check the website of the AEAT or our page with the current status, which we update when the Official State Gazette (BOE) publishes changes: https://factova.es/plazos-verifactu/

Is Factova free?

Yes. Factova is free software under the GPL and has no limit on invoices, orders or customers. It does not need any external account or paid service: it sends the records directly to the AEAT with your certificate.

Does Factova support the NO VERI*FACTU mode?

No. Factova works only in the VERI*FACTU mode: every record is sent to the AEAT when the invoice is issued.

Does it work in the Canary Islands, Ceuta and Melilla, the Basque Country or Navarre?

Not yet if you sell from the Canary Islands, Ceuta or Melilla with IGIC or IPSI: that will arrive in version 1.1. If your shop is in the peninsula or the Balearic Islands and ships goods to the Canary Islands, Ceuta or Melilla, Factova invoices those orders as exports, without VAT; the tax configuration step explains how to set the rates. Businesses with their tax domicile in the Basque Country or Navarre use TicketBAI and other regional systems, which Factova does not cover. The setup wizard asks about this before you start.

Is it the same as electronic invoicing (factura electrónica)?

No. VeriFactu is about the records that billing software sends to the AEAT. Mandatory electronic invoicing between businesses is a different obligation, with its own rules and dates. Factova issues PDF invoices with the VeriFactu QR code; it does not create structured e-invoices (such as Facturae) nor send them to e-invoicing platforms.

Does the AEAT offer a free invoicing application?

Yes, the AEAT offers a free application to issue invoices by hand, one by one. It is not connected to your WooCommerce orders. Factova creates the invoice from each order, with the customer and tax data of the order.

Can I use it if I am self-employed (autónomo)?

Yes. Factova works for one taxpayer, a company or a self-employed person, with its tax domicile in the Spanish common territory and with VAT.

Does it work with the WooCommerce block checkout?

Yes. The tax ID field is added with the additional fields API of the block checkout, and it also works in the classic checkout.

Do I need another plugin to ask for the tax ID (NIF) at checkout?

No extra checkout plugin needed. Factova adds the "I need a complete invoice" checkbox and the tax ID field itself: in the block checkout with the Additional Checkout Fields API of WooCommerce, and in the classic checkout as billing fields. It checks the tax ID before the order is placed, asks for it above the simplified invoice limit and, under the field, reminds the customer to type the name or company name exactly as registered with the tax agency, because the AEAT rejects a complete invoice whose tax ID and name do not match its records. Factova only reads its own field: if another plugin also asks for the tax ID, remove that field so the customer is not asked twice. If you sell to companies, show the Company field of the checkout so that they can type their company name: WooCommerce 11 hides it by default in the block checkout. Edit the Checkout page (or Appearance > Editor > Templates > Page: Checkout), select the Checkout block and turn on Company under its fields; in the classic checkout, use Appearance > Customize > WooCommerce > Checkout. While the field is hidden, Factova reminds you in its Settings screen.

Does it issue simplified invoices?

Yes. If the customer gives no tax ID and the amount is within the limit (400 €, or 3,000 € for retail sales), a simplified invoice (F2) is issued. Above it, the checkout asks for the tax ID. If the customer later asks for a complete invoice, you can issue an invoice that replaces the simplified one (F3).

Does it invoice subscription renewals and point of sale orders?

Yes. Renewals of WooCommerce Subscriptions and orders from WooCommerce Point of Sale are WooCommerce orders, and Factova invoices them like any other order. As with any order, a renewal without the customer's tax ID gets a simplified invoice, or waits in Pending if it is above the simplified invoice limit.

What is FACTOVA_SECRET? Do I need it?

No, you do not need it, and the wizard does not ask for it. Factova encrypts your certificate and signs its internal records with a key that, by default, comes from the security keys of WordPress (the salts of wp-config.php). If someone changes those keys (some security plugins and hosting migrations do it), Factova pauses issuing, you confirm it in Factova – VERIFACTU > Tools* with your WordPress password and you upload your certificate again: no invoice is lost. FACTOVA_SECRET is an optional, advanced line for wp-config.php, for developers, agencies and shops that move between servers, so that the key does not depend on the WordPress security keys. Factova – VERIFACTU > Tools explains it in a folded block and gives you the line. If you add it before the first invoice, Factova adopts it on its own. If your shop already has invoices, Factova pauses issuing until you confirm the new key in Factova – VERIFACTU > Tools. Normally your certificate is kept; only if the check with the previous key fails, or the previous key is gone, Tools tells you to upload it again. If the security keys of wp-config.php are missing or are the sample ones, Factova cannot protect anything and does not issue until FACTOVA_SECRET exists.

Do I need an electronic certificate?

Yes, to send the records to the AEAT: your own, your representative's (for example, your accounting firm) or an electronic seal. It is stored encrypted and is never shown or exported.

How do I get the .p12 or .pfx file of my certificate?

If the certificate is installed in your browser, export it with its private key as a .p12 or .pfx file: on Windows, from Internet Options > Content > Certificates > Export; on Mac, from Keychain Access. When you export it you choose a password, which is the one Factova asks for. If your accounting firm files your taxes, ask it for the file.

How do I switch from test to production?

In Factova – VERI*FACTU > Overview, press "Go to production…", review the checklist and type PRODUCTION to confirm. Then give the consent for production and repeat the connection test. You cannot go back to test.

Can I try it without sending real invoices to the AEAT?

Yes, with test orders: the AEAT test environment has no tax validity. Test invoices carry a watermark, are never sent to your customers and do not replace real invoices. Use it before you open your shop or on a staging copy, and switch to production as soon as you sell for real.

Can I test Factova on my live shop?

Yes, before you open it: make test orders in the AEAT test environment and check their invoices. A real sale is never invoiced in test: while Factova is in the test environment, an order that looks like a real sale (paid by a customer in the shop) waits in Pending until you switch to production, and then it gets its real invoice. If it was a test order, you confirm it in Pending and it is invoiced in test. On a staging or local copy of your shop you can tell Factova that the site is a test copy, so it invoices every order in test.

What happens if the AEAT service is down?

The invoice is issued anyway, because issuing happens in your shop and the submission comes afterwards: in production, the customer receives it with the order email and in My Account. Factova keeps the record, follows the waiting time of the AEAT and sends it again automatically when the service is back. With the email alerts on (the default), you receive an alert when the AEAT cannot be reached, and another one if records are still waiting after 24 hours.

What happens if I change an invoice or an order?

Invoices and records cannot be changed. A mistake is corrected with a correction of the record, a corrective invoice or, if the invoice should never have been issued, a cancellation. Factova warns you if the order changes after it was invoiced.

What happens if an invoiced order is cancelled?

The invoice is never deleted nor cancelled at the AEAT. The order moves to Factova – VERIFACTU > Pending* as "cancelled with invoice" and Factova proposes a corrective invoice (R1, or R5 if it was simplified) for the outstanding amount, which you issue with one click. Refunds already made are deducted. The same happens if an invoiced order goes back to failed or pending payment. If you prefer to invoice only completed orders (useful with many cancellations or with cash on delivery), choose it in the wizard or in Settings.

What happens when I refund an invoiced order?

Factova prepares the corrective invoice by differences (R1, or R5 if the invoice was simplified) with the lines of the refund and leaves it in Factova – VERIFACTU > Pending and in the "VERIFACTU invoice" box of the order, with the "Issue corrective invoice" button. Nothing is issued without your click: issue it as soon as you make the refund. Each partial refund gets its own corrective invoice, and never more than what is left of the invoice is corrected. The customer receives the PDF by email.

Does Factova handle the equivalence surcharge?

No. Factova does not calculate the equivalence surcharge (recargo de equivalencia). If an order carries it (or the customer was marked under the surcharge in an earlier version), Factova holds it in Pending with an explanation instead of issuing a wrong invoice. If the customer is not under the surcharge, remove the surcharge from the order in WooCommerce if it carries it, and confirm it in Pending with "This customer is not under the surcharge…": the invoice is then issued without surcharge. Invoices that already carried the surcharge can still be corrected.

Can I keep another invoice plugin?

Turn off its invoices: two systems invoicing the same orders produce duplicate numbering and invoices outside VERI*FACTU. Its packing slips can stay. Factova warns you if it detects another invoicing system, but it never blocks or deactivates anything.

What happens if I clone the shop to a staging site?

Factova detects the copy and stops issuing and sending in it, so a copy never duplicates invoice numbers nor sends to the AEAT.

What happens if I deactivate or uninstall the plugin?

Deactivating it deletes nothing, but while it is deactivated orders get no invoice. Uninstalling it does not delete the invoices nor the billing records: the law requires you to keep them. It does delete the stored certificate, the temporary state and the capabilities. You can export everything from Factova – VERIFACTU > Tools*. Deleting the tables when the legal retention period ends is up to you.

Is Factova approved by the AEAT?

VeriFactu has no approval process. The producer of the software signs a responsible declaration for every version, which you can read in Factova – VERIFACTU > About* and at https://factova.es/factova/declaraciones/

In which language is Factova shown?

In the language of your WordPress: the screens in the language of each user's profile; the customer emails, the PDF and My Account in the language of the site. WordPress downloads the translations automatically from translate.wordpress.org.

Why does Factova use cURL directly?

Sending the records to the AEAT needs a connection with a client certificate (mutual TLS). Factova sends the request through the WordPress HTTP API (wp_remote_request) and only adds, with the http_api_curl filter, the cURL options for the certificate of the issuer, which is decrypted in memory. The WordPress HTTP API has no option for a client certificate; if the server does not support certificates in memory, a private temporary file (permissions 0600) is used, overwritten and deleted at the end.

Where is the source code of the JavaScript?

In the plugin itself: assets/src/ contains the source code of all the scripts and styles in build/. To build it: npm install and npm run build (with @wordpress/scripts, see package.json and webpack.config.js).

What should I do before and after restoring a backup?

A restored backup takes the database back to an earlier moment, but the AEAT already has the invoices that were sent afterwards. If Factova used those numbers again, the AEAT would answer "duplicate record".

  • Before restoring: if you can, put the shop in maintenance mode and write down the last number of each series (in Invoices or in the AEAT e-office).
  • After restoring: do not issue invoices. Go to Factova – VERIFACTU > Tools*, section "The database looks restored from an older backup". Factova proposes the last number of each series from what the AEAT answered. Check it in the AEAT e-office, confirm it with your WordPress password, and Factova continues each series after that number, with a new chain. Orders that arrived in the meantime wait in Pending.
  • If you did not notice: Factova detects it through the mark it keeps outside the database or, if the hosting also restored the files, through the first "duplicate" answer of the AEAT. From then on it pauses issuing for that issuer in that environment and takes you to Tools.
  • Installation number: the recovery gives a new installation number to the whole shop. If the restore only affected the test environment but you already invoice in production, your production invoices also continue in a new chain (numbers and series do not change); Tools warns you before you confirm.

更新日志:

0.3.5 0.3.4 0.3.3 0.3.2 0.3.1 0.3.0 0.2.10 0.2.9