[WordPress] 外掛分享: Gwii Invoice Hash for WooCommerce

首頁 › 外掛目錄 › Gwii Invoice Hash for WooCommerce
WordPress 外掛 Gwii Invoice Hash for WooCommerce 的封面圖片
全新外掛
安裝啟用
—
尚無評分
13 天前
最後更新
—
問題解決
WordPress 5.8+ PHP 7.4+ v1.2.0 上架:2026-09-23

內容簡介

Gwii Invoice Hash for WooCommerce 是一款專為西班牙線上商店設計的小工具,能在訂單完成時計算 SHA-256 鏈接發票哈希值及西班牙稅務機關的 QR 驗證網址,協助商家符合「VeriFactu」開票規範。

【主要功能】
• 計算 SHA-256 鏈接哈希值
• 支援 WooCommerce PDF Invoices & Packing Slips
• 提供 QR 驗證網址
• 數據庫鎖定以防止同時訂單衝突
• 記錄取消訂單的哈希鏈接

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Gwii Invoice Hash for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

VeriFactu hash and QR for WooCommerce. Gwii Invoice Hash is a small utility for Spanish online shops. When an order is completed it computes, inside your own WordPress server, the SHA-256 chained invoice hash (“huella”) and the QR verification URL of the Spanish Tax Agency (AEAT), following the AEAT technical document v0.1.2 and chapter VIII of Orden HAC/1177/2024 (the “VeriFactu” invoicing regulation).
This plugin is developed independently by an individual developer. It is not affiliated with, endorsed by or certified by the Agencia Estatal de Administración Tributaria (AEAT), Automattic or WooCommerce. “VeriFactu” refers to the AEAT regulation the plugin implements; “WooCommerce” refers to the e-commerce plugin it extends.
What it does

SHA-256 chained hash built from the 8-field canonical string defined in the specification. The calculation matches the three official test vectors published by the AEAT.
One invoice number. With WooCommerce PDF Invoices & Packing Slips active, the hash and the QR use its invoice number and date. Otherwise the plugin assigns its own sequential numbering, independent from the order ID.
Database lock (MySQL GET_LOCK, or an atomic row lock on SQLite) so that two orders completed at the same time cannot break the chain.
Timestamps in the WordPress time zone (+01:00 / +02:00 in Spain).
Cancellation record chained to the previous hash when a registered order is cancelled or fully refunded.
QR verification URL with the four official parameters: nif, numserie, fecha and importe.
HPOS compatible and integrates with WooCommerce PDF Invoices & Packing Slips (adds text rows with the hash and the verification URL).
No external services: no API keys, no data sent to third parties.

What it does NOT do

It does not generate or sign the XML invoice record.
It does not submit records to the AEAT.
It does not keep the event log nor provide the manufacturer’s responsible declaration required by RD 1007/2023.
It does not handle partial refunds (corrective invoices).
It does not embed the QR image in the PDF (only the URL and the hash as text).

On its own it does not turn a shop into an invoicing system compliant with RD 1007/2023. It is a calculation building block you can use as a base or to verify another implementation.
The admin interface is currently in Spanish, as the regulation only applies to businesses in Spain.

延伸相關外掛

文章
Filter
Mastodon