Linux 软件免费装

ALMC Electronic Invoicing for VeriFactu

开发者 almcsecurity
更新时间 2026年6月4日 03:39
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

billing invoicing verifactu aeat sii

下载

1.0.1

详情介绍:

ALMC Electronic Invoicing for VeriFactu connects your online store with the ALMC SaaS API (almc.es) so you can comply with the electronic invoicing specification published by the Spanish Tax Agency (AEAT - Agencia Estatal de Administracion Tributaria) under Royal Decree 1007/2023 (the "VeriFactu" specification). The plugin is compatible with WooCommerce. This plugin is not affiliated with or endorsed by the AEAT. "VeriFactu" is the public technical name of the AEAT specification it implements. Verifactu is mandatory for businesses and self-employed individuals in Spain that issue invoices using electronic billing software. This plugin automates the entire signing and submission flow so you do not have to think about it. Main features Requirements

安装:

Step 1 - Create your VeriFactu SaaS account Go to https://almc.es/verifactu/register and create an account with your company details (business name, VAT/Tax ID). You will receive a welcome email. Step 2 - Upload your digital certificate Log in to https://almc.es/verifactu/login and go to the "Certificates" section. Upload your representative certificate (.p12 or .pfx) along with its password. The system will encrypt it using HKDF; the password is NEVER stored in plain text. This certificate is what VeriFactu uses to sign invoices sent to AEAT. If you do not have a digital certificate yet, you can obtain one for free from https://www.sede.fnmt.gob.es/certificados (for company representatives) or use your electronic ID. Step 3 - Create an invoicing series In the VeriFactu panel, "Series" section, create a new series (e.g. "A", "WC-2026" or any code you prefer). This series will be associated with the invoices the plugin sends from your online store. Step 4 - Generate an API key In the VeriFactu panel, "API Keys" section, click "Create new key". Give it a descriptive name (e.g. "WooCommerce - mystore.com"). The system will display the key ONLY ONCE in the format vfk_test_... (sandbox) or vfk_live_... (production). Copy it to a safe place: if you lose it you will have to generate another one. Step 5 - Install the plugin in WordPress Three options: a) From the WordPress repository: go to Plugins > Add New, search for "ALMC Electronic Invoicing for VeriFactu" and click "Install Now" then "Activate". b) Manually (.zip): download the almc-electronic-invoicing-verifactu.zip file, go to Plugins > Add New > Upload Plugin, select the zip and click "Install Now" then "Activate". c) Via FTP: unzip the file and upload the almc-electronic-invoicing-verifactu folder to the /wp-content/plugins/ directory of your installation. Then activate it from the Plugins menu. Step 6 - Configure the VeriFactu connection Go to WooCommerce > VeriFactu in the admin sidebar. Fill in: Click "Save changes". Then click "Test connection" to verify everything is working. If everything is fine you will see a green message with the active plan. Step 7 - Configure the customer NIF field On the same settings page, in "NIF meta field", indicate the name of the meta field where your checkout stores the customer NIF. The most common values: If you do not know which one your checkout uses, leave the default _billing_nif or check the database of your first test order (table wp_postmeta). Step 8 - Enable automatic submission (optional but recommended) In the "Automatic submission" section, check "Enable automatic submission" and choose the order statuses that trigger the submission. The most common: You can also leave it disabled and submit manually from each order. Step 9 - Configure the webhook (optional) If you want VeriFactu to notify you of invoice status changes (accepted / rejected by AEAT) in real time, copy the URL shown in the plugin "Webhook" section and paste it into the VeriFactu panel, "Webhooks" section. The HMAC signing secret is generated automatically. Step 10 - First test order With the environment set to "Sandbox":
  1. Create a test product in your store
  2. Place an order to yourself (use a customer with a valid NIF/CIF)
  3. Mark the order as "Completed"
  4. In the order detail you will see the "VeriFactu" metabox with the status and assigned invoice number
  5. If everything is fine: the status will become "Accepted" in a few seconds and you will see the AEAT receipt number (CSV)
Once this flow works in sandbox, switch the environment to "Production", save and start issuing real invoices. Troubleshooting

升级注意事项:

1.0.1 Name/slug change and security hardening for WordPress.org compliance. Update recommended. 1.0.0 Initial plugin release.

常见问题:

Where do I get my API key?

Register at almc.es/verifactu to get an account and your API key. The free plan includes 10 invoices per month.

What field is used for the customer NIF?

By default, the plugin looks for the meta field _billing_nif. If you use a checkout plugin that stores the NIF in another field (for example _billing_vat or _billing_cif), you can configure it in the settings.

Can I submit invoices manually?

Yes. On the order detail page you will find a VeriFactu metabox with a button to submit manually.

Are invoices submitted automatically?

Only if you enable the "Automatic submission" option in the settings. You can choose which order statuses trigger the submission (completed, processing, etc.).

Is it compatible with HPOS?

Yes. The plugin is fully compatible with WooCommerce High-Performance Order Storage (HPOS).

What happens if an invoice is rejected?

The plugin records the error in the order notes and shows the "Rejected" status in the metabox. You can correct the data and resubmit.

更新日志:

1.0.1 1.0.0