by Kavio Labs · for WooCommerce 10.1+ on WordPress 6.7+
Sell gift cards and accept them as a payment: fixed or custom amounts, six designs with a live preview, recipient, message and delivery date, a WooCommerce e-mail with a PDF card, partial redemption with the remainder kept, balance check, expiry, refunds and an append-only, row-locked ledger that never spends one balance twice. A payment, not a discount: taxes stay unchanged. Cart and Checkout blocks, HPOS.
Tested on WooCommerce 11.2.1 & WordPress 7.1.3Updated Nov 20, 2026Version 1.0.0Compatible with WooCommerce 10.1 – 11.2, WordPress 6.7+ No core file edits
Built forWooCommerce
Gift Cards for WooCommerce: gift cards that pay like money.1 of 9
What it does
Sell gift cards and accept them as a payment: fixed or custom amounts, six designs with a live preview, recipient, message and delivery date, a WooCommerce e-mail with a PDF card, partial redemption with the remainder kept, balance check, expiry, refunds and an append-only, row-locked ledger that never spends one balance twice. A payment, not a discount: taxes stay unchanged. Cart and Checkout blocks, HPOS.
Sell gift cards that look like a gift. Gift Cards for WooCommerce turns any simple product into a gift card: fixed amounts or a custom amount, six designs with a live preview, recipient, a personal message and a delivery date up to a year ahead.
What you get
Download & installThe plugin .zip, installed in Plugins > Add New Plugin > Upload Plugin. Download it from My licenses right after payment.
12 months of updates & supportNew versions and help for 12 months (24 or 36 months at checkout). After that the plugin keeps working; renew anytime at 50%.
License for your storeOne production domain with all its subdomains; staging and local development hosts are free. How licensing works
30-day refundFull refund within 30 days of your first purchase, no reason needed. Refund policy
Tested buildsWooCommerce 10.1 – 11.2, WordPress 6.7+. Tested on WooCommerce 11.2.1 and WordPress 7.1.3.
Documentation & supportFull guide (Installation, Configuration, Usage, Developer notes) on this page. Tickets from your account, same-day reply on weekdays (Mon-Fri 09:00-18:00 UTC+3).
Compatibility
Gift Cards works with WooCommerce 10.1 – 11.2, WordPress 6.7+.
We list the builds we install and test on. “Tested” means the test plan ran on that build; “Supported” means the build is inside the supported range.
Compatibility
Version
Range
Runs on
Status
WooCommerce 11
11.0 – 11.2
WordPress 6.7 – 7.1
Tested on 11.2.1
WooCommerce 10
10.1 – 10.x
WordPress 6.7+
Supported
WordPress
6.7 – 7.1
PHP 7.4 – 8.3
Tested on 7.1.3
1.0.0
Nov 20, 2026
Latest
First release: gift card products (fixed or custom amounts, six designs with a live preview, recipient, sender, message, delivery date); cards issued only when the order is paid (offline methods when completed), one unique 80-bit code per unit; WooCommerce e-mail "Gift card" with a PDF card, scheduled with Action Scheduler, retried on failure; redemption in the Cart / Checkout blocks and the classic cart / checkout (several cards, remainder kept, guests allowed); payment, not discount (taxes unchanged, gift card products untaxed); append-only row-locked ledger, settle-to-target bookings on every order path, 409 when the shown gift card amount differs from the server (overlapping requests), order-pay route keeps the order's own cards; bought cards voided on refund / cancellation / chargeback, unvoided on reopen; code guessing protection (proxy / CDN aware); expiry with a legal minimum and reactivation; WooCommerce > Gift cards (list, CSV, card page, credit / debit, status, resend, void, logged reveal, PDF, batch issue); order screen box (return to gift card, issue now, void); My Account > Gift cards, balance check shortcode; REST API; privacy exporter / eraser keeping financial records; HPOS and legacy order storage.
How do I install the plugin?
Upload the plugin. Plugins > Add New Plugin > Upload Plugin: choose the .zip from My licenses and click Install Now.
Activate. Activate it on the Plugins screen. WooCommerce must be active; the plugin tells you if it is not.
Enter the license key. WooCommerce > Settings, the plugin's own tab: paste the key from My licenses. You have 14 days to do it; staging and local sites are included.
WooCommerce 10.1 – 11.2, WordPress 6.7+. Tested on WooCommerce 11.2.1 and WordPress 7.1.3. The Compatibility tab lists every version range.
Do the plugins work with HPOS and the block checkout?
Yes. Every plugin declares compatibility with High-Performance Order Storage and the Cart and Checkout blocks, and is tested in both the block and the classic cart and checkout.
Will they work with my theme?
They use WooCommerce hooks, blocks and the Store API instead of template overrides, so block themes and classic themes both work. We test on Twenty Twenty-Five.
What does the license cover?
One production store domain with every subdomain (www, shop., staging.), plus local development hosts such as localhost, *.local and *.test. A store on another domain needs its own license; a second-store license is 40% off. You have 14 days after installing to enter the key. 12 months of updates and support are included; after that the plugin keeps working and renewals are 50% off. How licensing works
Can I get a refund?
Yes. Ask for a full refund within 30 days of your first purchase, no reason needed: open a ticket or write to [email protected] with your order number. The money goes back to the card or bank account you paid with within 5 business days of approval. Refund policy
How do I get help?
Open a ticket from your account, so your license details are attached. We answer with a same-day reply on weekdays (Mon-Fri 09:00-18:00 UTC+3). Support policy. Not a customer yet? Ask a pre-sales question.
Sell gift cards as products and accept them as a payment at checkout. A gift card has a unique code and a balance; customers pay with it fully or partly until the balance is used up. Every balance change is one row in an append-only ledger, booked under a database row lock, so one balance is never spent twice.
Gift card product page
What it does
Gift card products: tick "Gift card" on a simple product. Fixed amounts and / or a custom amount, six designs with a live preview, recipient name and e-mail, sender name, a message (300 characters) and a delivery date up to a year ahead.
Issued only when paid: one card per unit once the order is processing or completed (cash on delivery, bank transfer and cheque: when completed). Codes have 80 random bits (GIFT-XXXX-XXXX-XXXX-XXXX).
Delivery: the WooCommerce e-mail "Gift card" with a printable PDF card, sent right after payment or at 08:00 store time on the chosen day (Action Scheduler), retried on failure.
Redemption: in the Cart and Checkout blocks and the classic cart and checkout; several cards per order; the remainder stays on the card; guests can redeem.
A payment, not a discount: the card is taken off the finished total; taxes of the goods and shipping stay unchanged; every card is its own row on the order. See FAQ, tax and accounting.
Refunds and order changes: cancel, failed payment, trash and delete give card money back once, reopening takes it again; "Return to gift card" on the order screen; bought cards are voided on refund, cancellation or chargeback and come back when the order is reopened.
Money integrity: row locks, no negative balance, settle-to-target bookings, the amount the shopper saw is checked when the order is placed, tested with parallel checkouts.
Security: code guessing protection per visitor (proxy and CDN aware); codes never appear in order data, notes, REST or Store API responses; showing a full code needs its own capability and is logged.
Admin: WooCommerce > Gift cards (outstanding balance, list, CSV, card page with history, credit / debit with a reason, status and expiry, resend, void, PDF, batch issue).
Customers: My Account > Gift cards (bought and received cards) and a balance check (shortcode [kv_gift_card_balance]).
Privacy exporter and eraser (financial records kept), REST API, HPOS and legacy order storage.
Requirements
WordPress
6.7 or later (tested on 7.1.3)
WooCommerce
10.1 or later (tested on 10.1.4 and 11.2.1)
PHP
7.4 or later (tested on 8.1 and 8.3), libsodium (PHP built-in or WordPress' sodium_compat)
Database
MySQL / MariaDB with InnoDB (the plugin's tables use row locks)
Order storage
HPOS and legacy posts storage (compatibility declared, both tested)
Cart / Checkout
Blocks and classic shortcodes
Pages
Installation
In WordPress go to Plugins > Add New Plugin > Upload Plugin and upload kv-gift-cards-kv.zip (or the CodeCanyon / WooCommerce.com zip you bought).
Activate Gift Cards for WooCommerce. Activation creates three InnoDB tables (wp_kv_gfc_cards, wp_kv_gfc_ledger, wp_kv_gfc_attempts), a random code encryption key (option kv_gfc_key, not autoloaded), grants kv_gfc_manage_cards to administrators and shop managers and kv_gfc_reveal_codes to administrators, adds the My Account endpoint gift-cards and schedules two Action Scheduler jobs (group kv-gift-cards): kv_gfc_daily (expiry) and kv_gfc_sweep (every 15 minutes: missing cards, deliveries, unpaid orders).
Own-site build: enter your licence key under WooCommerce > Settings > Gift Cards > Licence. Without a valid key after the start period, selling and redeeming cards stops in the storefront. Issuing cards for paid orders, delivery, refunds, the admin pages and all existing balances always keep working.
Check WooCommerce > Settings > Emails > Gift card: it is enabled by default. Adjust subject and heading if you like.
If My Account shows "page not found" for Gift cards, open Settings > Permalinks and click Save once.
Update
Upload the new zip over the old one (WordPress asks to replace the plugin). Cards, balances and settings stay.
Uninstall
Deactivating keeps everything. Deleting the plugin keeps the cards and the ledger unless Remove data on uninstall is checked; then a CSV export of every card (masked code, balance, status, expiry, recipient) and every ledger row is written to wp-content/uploads/kv-gift-cards/ (folder closed to the web) before the tables, settings, the code key and the capabilities are removed. If the export cannot be written, nothing is removed. Full codes are never exported: keep the plugin installed (or uninstall without removing data) as long as cards must be honoured. Orders are never changed.
Configuration
WooCommerce > Settings > Gift Cards
Settings
General
Setting
Default
What it does
Enable
on
Sell gift cards and accept them as a payment.
Guests
on
Customers without an account can pay with a gift card.
Gift cards per order
5
Highest number of cards one order can use.
Gift cards for gift cards
off
Off: gift card products in the cart are paid another way (cards do not buy cards, a common anti-fraud rule).
Give back on cancellation
on
Card money of a cancelled, refunded (status), unpaid failed, trashed or deleted order goes back to the cards; reopening takes it again.
Release unpaid orders after (minutes)
60
Unpaid orders (abandoned off-site payments) give their card money back after this time; paying the order later takes it again. 0 = only when cancelled.
Selling gift cards
Setting
Default
What it does
Default amounts
25, 50, 100
Amounts of products that have none of their own.
Lowest / highest custom amount
10 / 500
Defaults for products with "Custom amount".
Code prefix
GIFT
Up to 8 letters / digits before the code.
Offline payments
on
Cash on delivery, bank transfer and cheque orders get their cards when completed. More "pay later" methods: filter kv_gfc_offline_gateways.
Void refunded cards
on
Book out the remaining balance of bought cards when their order is refunded or cancelled.
PDF card
on
Attach the PDF card to the Gift card e-mail.
Expiry
Setting
Default
What it does
Valid for (months)
36
From the day a card is issued; products can override it; 0 = no expiry.
Legal minimum (months)
12
No card is issued with a shorter validity.
There is no single EU expiry rule. National law sets minimum validity periods for vouchers (for example 5 years in Ireland; in Germany terms shorter than the 3-year limitation period are often held unfair). Check the rules of the countries you sell to; this is not legal advice.
Code guessing protection
Setting
Default
What it does
Wrong codes allowed
10
Per visitor within the window; then every lookup of that visitor (valid codes too) is refused until the window has passed.
Window (minutes)
15
Trusted proxies
empty
IPs / CIDR ranges of your own reverse proxy, load balancer or CDN. Only they may name the visitor address in X-Forwarded-For.
Behind a proxy or CDN that is not listed, the plugin counts per visitor session on the shared address (plus a ceiling of 20 x the limit per address) and the settings page shows a notice. List your proxy addresses so every visitor is counted by their own address.
Product settings
Edit a simple product, tick Gift card in the General tab and set the amounts, custom amount limits, designs, validity and delivery date option. The product becomes virtual with tax status None; its regular price is only shown in product lists.
Product settings
E-mail
WooCommerce > Settings > Emails > Gift card (recipient e-mail; the buyer when no recipient e-mail was given). Placeholders: {site_title}, {amount}, {sender}. Template override: yourtheme/woocommerce/emails/kv-gfc-delivery.php.
Usage
Buying a gift card
The customer opens the gift card product, picks an amount (or types one), a design, enters the recipient, a message and optionally a delivery date, and adds it to the cart. The preview card follows every choice. Each unit becomes its own card.
The card is created when the order is paid and sent by e-mail with its PDF card, right away or at 08:00 store time on the chosen day. Until then the order line shows the choices; after issue it shows the masked code.
Paying with a gift card
Block cart
In the Cart or Checkout block the customer opens Add a gift card, enters the code and clicks Apply. The card pays up to its balance; the panel shows the masked code, the amount and what stays on the card. More cards can be added. In the classic cart and checkout the Gift card row works the same way.
When the cards cover everything the total is 0 and the order is placed without a payment method. When another checkout spent the card in the meantime, the order is refused with the reason (HTTP 409 in the block checkout) and the shopper sees the new total; nothing is taken twice.
Order received
Refunds and order changes
Cancel, failed payment (unpaid), trash, delete, status Refunded: every card gets back exactly what this order took from it. Reopening the order takes it again; when a card no longer has enough, the shortfall is noted on the order.
WooCommerce refunds refund the part paid with the other payment method. When that part is fully refunded, the order keeps its status while it still holds card money (the refund may be one item): use Return to gift card in the Gift cards box, or set the order to Refunded to give all of it back.
Chargeback (a paid order turns Failed): the card money stays with the order; the bank returns the other part.
Pay for order page and express pay buttons (Store API route for existing orders): the order uses its own cards. Card money released by a failed payment is taken again; when a card cannot pay any more, the amount due is raised and the payer is asked to pay again.
Bought cards: refunding or cancelling the order voids them (the remaining balance is booked out; the order note shows what the recipient already spent, which cannot be taken back). Partial refunds void the refunded units. Reopening brings cards voided by that order back.
Order box
Managing cards
WooCommerce > Gift cards shows the outstanding balance (owed to card holders), all cards with status, balance, recipient, source, expiry and delivery, search by the last four characters, a full code, an e-mail, a name or an order number, and a CSV export (no codes).
Card list
The card page shows the history and lets you credit or debit with a reason, change status and expiry (reactivating an expired card needs a new last valid day and gives back the expired balance), edit the recipient, send the e-mail now and void the card. Administrators can show the full code or download the PDF; each time is written to the history with the user.
Card page
Issue cards creates up to 100 cards at once (prizes, goodwill, cards sold in your shop). The codes are shown once and offered once as a CSV download.
Issued codes
My Account
My Account > Gift cards lists the cards sent to the customer's e-mail (balance, expiry), the cards they bought (recipient, delivery) and a balance check. Put the balance check anywhere with the shortcode [kv_gift_card_balance].
My Account
Developer notes
Data
Table
Content
wp_kv_gfc_cards
one row per card: code_hash (SHA-256 of the normalised code, unique), code_enc (libsodium secretbox, site key kv_gfc_key), code_mask, currency, initial, balance, status (active, disabled, expired, void), expires_on (last valid day, store time zone), source (order, admin, api), order / order item / unit (unique per unit), buyer, recipient, sender, message, design, delivery state
wp_kv_gfc_ledger
append-only: card, type (issue, redeem, return, credit, debit, void, unvoid, expire, reactivate, reveal), signed amount, balance after, order, unique ref_key, note, user
wp_kv_gfc_attempts
code guessing counters (hashed keys)
Invariant: cards.balance = SUM(ledger.amount) >= 0 for every card (KavioLabs\GiftCards\Cards::verify()).
Order meta: _kv_gfc_cards (JSON: card id, mask, amount), _kv_gfc_amount, _kv_gfc_released, _kv_gfc_shortfall. Order line meta: _kv_gfc_options (choices), visible rows (To, From, Message, Delivery, Design, Gift card = masks). Codes are never stored on orders. REST v3 orders hide _kv_gfc_* meta and add kv_gift_cards (mask + amount).
The order total is "what another payment method pays": goods + fees + shipping + taxes − cards. woocommerce_order_after_calculate_totals keeps it that way on every recalculation. order.total therefore excludes the card part: exports and ERPs add _kv_gfc_amount back to get the gross amount.
Update callback POST /wc/store/v1/cart/extensions with namespace: "kv-gift-cards" and data: { action: "apply", code } or { action: "remove", key }. Wrong codes count for the guessing limit (HTTP 429 when locked).
Checkout extension data extensions["kv-gift-cards"].seen = the gift card amount the client showed; a different server amount refuses the order with HTTP 409 kv_gfc_changed. Headless clients should send it.
REST API (kv-gift-cards/v1)
Route
Access
POST /balance{code}
public, guessing limit
mask, balance, currency, status, expiry
GET /cards
kv_gfc_manage_cards
list (no codes), status, search, page, per_page; X-WP-Total
GET /cards/{id}
kv_gfc_manage_cards
card + ledger
POST /cards
kv_gfc_manage_cards
issue amount, quantity (1-100), expires_on, recipient_name, recipient_email, sender_name, message, design, send, note; the codes are in this response only
POST /cards/{id}/adjust
kv_gfc_manage_cards
amount (signed), note
Hooks
Hook
Type
kv_gfc_designs
filter
card designs (name, bg, bg2, fg, accent)
kv_gfc_offline_gateways
filter
payment methods whose orders get cards only when completed
kv_gfc_release_statuses
filter
statuses that give card money back
kv_gfc_entry_written
action
after a ledger row (inside the transaction: no mail)
kv_gfc_card_created
action
after a card was created
kv_gfc_delivered
action
after a delivery attempt ($card_id, $ok)
Jobs (Action Scheduler, group kv-gift-cards)
kv_gfc_daily (expiry, limiter cleanup), kv_gfc_sweep every 15 minutes (missing cards of paid orders, failed or lost deliveries up to 3 attempts, card money of unpaid orders after the release time), kv_gfc_deliver (one per card).
WooCommerce Subscriptions
Gift card meta is never copied to subscriptions, renewals or resubscribes. Not tested with the Subscriptions plugin itself.
FAQ
Is a gift card a discount?
No. It is a means of payment, taken off the finished order total. Taxes of the goods and shipping are calculated on the full price and stay unchanged; the card is its own row on the order, the thank-you page, e-mails and My Account. The plugin never uses negative fees or coupons for this (WooCommerce spreads the tax of a negative fee over the items, which would lower the VAT).
How are gift card sales taxed?
In the EU a voucher that can be spent on anything in the store is a multi-purpose voucher (VAT Directive 2006/112/EC, Art. 30a and 30b as amended by Directive 2016/1065): no VAT when it is sold, VAT on the goods when it is spent. Gift card products are therefore sold with tax status None. Single-purpose vouchers (VAT due at sale) are not supported in 1.0. Ask your tax adviser; this is not tax advice.
Why does the order total exclude the card?
The order total is what another payment method pays. Analytics and exports show the lower total for orders paid partly by card; add _kv_gfc_amount back for the gross amount. A gift card sale is a liability (money owed to the card holder) until it is spent: the outstanding balance is on WooCommerce > Gift cards.
Can two checkouts spend the same card?
No. Every change locks the card row; the second checkout is refused (HTTP 409 in the block checkout, an error in the classic checkout) and nothing is taken twice. Tested with four parallel checkouts on WooCommerce 11.2.1 and 10.1.4, HPOS and legacy order storage.
What happens when I refund an order paid partly by card?
The WooCommerce Refund button refunds the other payment method. Give card money back with "Return to gift card" in the Gift cards box (never more than the card paid, one booking per form), or set the order to Refunded / Cancelled to give all of it back. A refund that reaches the order total does not set the order to Refunded while it still holds card money, so the card part is never paid out twice.
What happens when I refund a gift card purchase?
The card is voided (its remaining balance is booked out). If the recipient already spent part of it, the order note says how much; that money cannot be taken back, so check before refunding the full price.
A customer abandoned the payment page. Is the card money stuck?
No. Unpaid orders give their card money back after the release time (default 60 minutes), and a new classic checkout of the same customer releases the earlier unpaid order at once. If the order is paid later after all, the money is taken again (a shortfall is noted).
Can someone guess codes?
Codes have 80 random bits. On top, wrong codes are counted per visitor; after 10 wrong codes in 15 minutes the visitor's lookups are refused, valid codes too. Behind a proxy or CDN list it under Trusted proxies (see Configuration).
Where do codes appear?
Only in the Gift card e-mail and its PDF, in the issue screen / REST response right after a batch issue, and to administrators who click "Show full code" (logged). Never in orders, notes, item meta, REST v3 orders, Store API responses, lists or exports.
Multi-currency?
Cards are kept in the store currency. In another display currency (currency switchers) cards cannot be bought or used.
Not in 1.0
Single-purpose vouchers, cards across currencies, physical card numbers / barcodes, card transfers, a PDF designer (designs are colour sets), redemption in the admin order editor.
The department store block theme for WooCommerce: colour-coded departments, a department list beside the hero slider with two side promos, a big search with a department picker, tabbed product grids, a 2 + 1 + 2 offer grid, deals of the day with real countdowns, a department showcase, a promotions band and a three-column product page with a sticky buy box. Four styles (Meridian, Harbor, Citrus, Night) as Site Editor style variations, every colour editable. Cart and Checkout blocks styled, HPOS neutral.
Stop AI crawlers, scrapers, card testers, vulnerability scanners and unwanted countries before WordPress builds a page. Googlebot and Bingbot are verified by DNS and always allowed; 50+ bots get one switch each; country rules use free GeoIP databases and can close only the checkout (block and classic checkout, wc-ajax and Store API); card testing protection on order submissions; the add to cart flood fix for requests without a WooCommerce session; IP and network lists, rate limits for search, filters, forms and login, honeypots; a one-second challenge instead of a captcha; learning mode, dashboard, log, IP tester and Cloudflare export. HPOS and blocks compatible.
The campaign block theme for WooCommerce that makes a store feel like a sale is always on: a flash bar with the sale that ends first, a bento hero with a live deal tile, a dark flash deals zone with flip-tile countdowns on real sale end dates, round discount stickers, a category pill bar, stories with a player, a Discover feed with promo cells inside the grid, a product page campaign strip and a sticky phone buy bar. Sixteen colour styles as Site Editor style variations, two of them dark. Cart and Checkout blocks styled, HPOS neutral.