| 开发者 | alvaroalon96 |
|---|---|
| 更新时间 | 2026年12月4日 04:09 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp factova status|verify|invoices|doctor.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".
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.
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/
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.
No. Factova works only in the VERI*FACTU mode: every record is sent to the AEAT when the invoice is issued.
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.
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.
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.
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.
Yes. The tax ID field is added with the additional fields API of the block checkout, and it also works in the classic 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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Factova detects the copy and stops issuing and sending in it, so a copy never duplicates invoice numbers nor sends to the AEAT.
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.
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 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.
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.
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).
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".