How to Restrict WooCommerce Products to Verified Customers
Flag selected products, choose Product Scope, and require server-confirmed approval. Checkout blocks order placement; After purchase holds the order. Content gates require API Session mode.

Contents
In this guide
Jump to the part you need.
This guide is for WooCommerce stores that require identity verification before selling selected products, such as age-restricted goods or high-value items. The Didit Verify plugin applies the rule from the product editor, and a full ID check costs $0.33. Two caveats matter: one cart item inside the active Product Scope puts the whole cart behind verification, and the timing differs between Checkout mode and After purchase mode.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Setting | Where it lives | What it does |
|---|---|---|
| Product Scope | Settings → Didit Verify → WooCommerce | All products (default), only selected products, or all products except selected ones. It decides which carts need verification. |
| Product flag | Product data → Advanced → Didit verification | Marks a product for the scope: gated under Only selected products, exempt under All products except selected. |
| Cart rule | Checkout | A cart requires verification if any item in it falls within the active scope. |
| Plugin mode | Settings → Didit Verify | API Session mode is required for checkout requirements and content gates. |
| After purchase | Settings → Didit Verify → WooCommerce | The order stays on hold until the server confirms approval. Needs the webhook URL and matching secret. |
| Content gates | [didit_gate] and [didit_status] | Protect page content, or show verification status to logged-in users. |
| Price | didit.me/pricing | $0.33 per full ID check. Free plan credit is $10.00 a month for eligible organizations. Sandbox is free. |
Start free in the sandbox at business.didit.me (no sales call). For developers, connect Didit to an AI assistant through the Didit MCP server. The plugin is documented on the Didit WordPress and WooCommerce KYC page, unit prices sit on the pricing page, and the wider User Verification range is listed in Didit product facts.
Decision guide: use product verification when the rule belongs to specific products in a cart, and use a logged-in content gate when the rule belongs to a page, a download or a member area.
What Product Scope actually controls
Product Scope is the setting that decides which carts need verification. It takes three values, and the per-product checkbox means something different in each one. You choose it under Settings → Didit Verify → WooCommerce.
| Product Scope | What the checkbox means | Carts that need verification |
|---|---|---|
| All products (default) | The checkbox does not narrow anything | Every cart |
| Only selected products | Checked products are in scope | Any cart holding at least one checked product |
| All products except selected | Checked products are exempt | Any cart holding at least one unchecked product |
The rule is one line: a cart requires verification if any item in it falls within the active scope. Under All products, every product is in scope. Under Only selected products, checked products are in scope. Under All products except selected, checked products are exempt and unchecked products are in scope. The same checkbox that gates a product under one scope exempts it under another, so read the scope before you tick anything.
Enforcement happens at the cart, not at the line item. A shopper who adds an in-scope item next to three ordinary ones still goes through verification, because the requirement is evaluated at cart level. The scope applies to Checkout mode and to After purchase mode alike.
Two limits come from Didit's side. Verification only releases an order when the server confirms an Approved decision, and a finished UniLink flow does not count. The plugin also checks that the session belongs to the current shopper and has not already been used for another order.
Before you start
- WordPress 6.0 or higher and PHP 7.4 or higher.
- A Didit account at business.didit.me. Sandbox testing is free and unlimited on every plan.
- Free plan credit, if you plan to run live checks cheaply: the first organization created with an eligible work email for a company domain gets $10.00 of monthly credit. Phone codes are excluded from Free plan credit.
- An API key from Developers → API keys in the Didit Business Console, and a workflow ID from Workflows.
- Didit Verify 0.3.4 or later for the behavior described here.
Step by step: restrict selected products to verified customers
Create or pick a workflow. In the Didit Console, open Workflows, create the flow your buyers complete (for example ID document, passive liveness and face match), and copy the Workflow ID.
Copy the API key. Go to Developers → API keys and copy the primary key, or create a key dedicated to this store. New keys start with
sk_live_orsk_test_. Keep the key on the server only.Install the plugin. Download
didit-verify-0.3.4.zipfrom the 0.3.4 release and upload it under Plugins → Add New → Upload Plugin, or install from the WordPress.org listing. Check the version before installing: use Didit Verify 0.3.4 or later for the behavior described here. If the directory has an older version, install the release ZIP.Set the mode. Open Settings → Didit Verify, set Mode to API Session, enter the Workflow ID and API key, and save. API Session is the mode that checkout requirements and content gates need.
Turn on the checkout requirement. In Settings → Didit Verify → WooCommerce, check Require identity verification at checkout.
Choose the placement. Top of checkout, after billing details, after order notes, or before Place Order. Before Place Order is the recommended position, because the shopper sees the requirement right before paying.
Set Product Scope to only selected products. This is the step that limits verification to a subset instead of the whole catalog.
Flag the products. Open each product, go to Product data → Advanced, and tick Didit verification. Repeat for every product that needs a verified buyer.
Decide between checkout and after purchase. In Checkout mode the server must confirm an
Approveddecision before the shopper can place the order. In After purchase mode the shopper can place the order, and that order stays on hold until the server confirms approval. For after purchase, copy the webhook URL and matching secret shown in Settings → Didit Verify into your Didit application, so signed status updates can release approved orders.
Checkout messages and billing data
Under Settings → Didit Verify → WooCommerce you can edit the Section Title, Checkout Message and Post-purchase Message; empty fields fall back to the default text. Send Billing Data passes the customer name, email, phone and address to Didit for pre-filling and cross-validation, and country codes are converted from WooCommerce alpha-2 to Didit alpha-3 automatically. Under the general settings, Vendor Data links each verification to a user in your dashboard (WordPress User ID by default, for example wp-42), Callback URL and Callback Method control where the shopper lands afterwards, and Language picks one of 54 languages or lets the browser decide.
Content gates with the shortcodes
The plugin ships two shortcodes for logged-in users: [didit_gate] protects content, and [didit_status] shows verification status. Both read a server-confirmed approval from a session created in API Session mode. A UniLink completion alone does not open protected content.
[didit_verify]
[didit_verify text="Verify Now" success_text="Done!"]
[didit_verify mode="embedded"]
[didit_gate]
[didit_status]
Place the verification button inside the gate, so a logged-in user who is not approved yet sees the button and the protected content appears after a server-confirmed approval. The status display suits account pages, where a member can read their verification status without starting the flow again.
For developers, the same decision is one API call. This is an optional diagnostic, not part of the documented setup: the plugin handles server confirmation itself when it is configured as described above.
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
-H "x-api-key: $DIDIT_API_KEY"
The decision endpoint is the source of truth. Call GET https://verification.didit.me/v3/session/{session_id}/decision/ with the x-api-key header and read status. A 401 indicates an invalid key. A 403 can indicate missing access, such as the read:sessions privilege. A 404 can mean the session is missing or inaccessible to the key, for example because it belongs to another application or sits outside the key's workflow or status scope.
What the customer and your team see
- In Checkout mode the shopper sees the verification section at the placement you chose, and the server must confirm an
Approveddecision before the shopper can place the order. This holds for classic and block checkout. - In After purchase mode the shopper can place the order, and that order stays on hold until the server confirms approval.
- The order stores the session ID for reference, so support can trace a gated order back to its verification.
- Guest customers verify from the order page using its valid order key.
- The decision returns exact status strings such as
Approved,Declined,In Review,AbandonedorKyc Expired, and feature result arrays for the checks that ran. A feature that did not run can be absent or null. - Gated page content appears for a logged-in user with a server-confirmed
Approveddecision, and becomes unavailable if that approval is later declined, expires or returns to review.


Failure cases and recovery
| Symptom | Likely cause | Fix |
|---|---|---|
| Customer finished verification but the checkout stays blocked | Plugin in UniLink mode, or an earlier approval that the server never confirmed | Switch to API Session with workflow ID and API key. Use Didit Verify 0.3.4 or later. After upgrading from a version older than 0.3.2, users whose earlier approval was never confirmed by the server must verify again. |
| After-purchase order stays on hold | Webhook URL or secret missing, or the signature is rejected | In the documented plugin setup, check the webhook URL and the matching secret in Settings → Didit Verify. For a custom handler, verify X-Signature-V2 against the sorted, Unicode-preserved canonical JSON of the raw body, and separately require the absolute difference between the server time and X-Timestamp to be at most 300 seconds. |
| Guest cannot find the verify button | Order page link without the order key | Guest verification needs the order page and its valid order key. |
| Almost the whole catalog is gated | Scope left on all products | Set Product Scope to only selected products and flag products individually, or use All products except selected to exempt the ordinary ones. |
| Checkout still asks for verification after the flagged item was removed | Another item in the cart is still inside the active scope | Check whether any remaining item falls within the active Product Scope, then remove it or complete the verification. |
| A previously verified customer loses access | The approval was later declined, expired, or moved back to review | Expected from version 0.3.4. Access requires a server-confirmed Approved decision. For a session in review, check its decision in the Didit Console. |
| Decision call returns 401, 403 or 404 | Invalid key, missing privilege, or a session the key cannot reach | Check the session ID, the application, the key privilege and the workflow or status scope the key is limited to. |

Inputs and outputs
| Item | Type | Detail |
|---|---|---|
| WordPress 6.0+, PHP 7.4+ | Input | Minimum platform versions. |
| API key | Input | Developers → API keys. Server side only. |
| Workflow ID | Input | Workflows in the Didit Business Console. |
| Product Scope | Input | All products, only selected products, or all products except selected. Decides the cart rule. |
| Didit verification flag | Input | Product data → Advanced, one product at a time. |
| Webhook URL and secret | Input | Required for After purchase mode. |
| Checkout placement | Input | Top of checkout, after billing, after order notes, or before Place Order. |
| Session ID on the order | Output | Stored on the order for reference and support. |
| Order status | Output | Held until server-confirmed approval in After purchase mode. |
| Verification status | Output | [didit_status] for logged-in users. |
| Webhook events | Output | status.updated and the related status changes you subscribe to. |
What you pay, and where review starts
We bill per completed check from prepaid credit. A full ID check is $0.33 and decomposes as ID document $0.15 + passive liveness $0.10 + face match 1:1 $0.05 + device and IP analysis $0.03 = $0.33. Only carts that fall within the active scope trigger a check, so carts outside the scope cost nothing.
Worked example. The store takes 3,000 orders a month and 40% of carts fall within the active scope: 3,000 × 0.40 = 1,200 carts. The assumption that matters for billing is that all 1,200 of those carts end in a completed full ID check that is billed, so the examples below price 1,200 completed full ID checks, not 1,200 affected carts.
| Plan | Per check | Usage for 1,200 checks | Monthly credit | From top-ups | Total for the month |
|---|---|---|---|---|---|
| List price, no plan | $0.33 | $396.00 | None | $396.00 | $396.00 |
| Free, $0.00 a month | $0.33 | $9.90 for the first 30 checks | $10.00 for eligible organizations | The rest, at list price | $0.00 for those 30 checks |
| Growth, $99.00 a month | $0.3168 (4% off) | $380.16 | $115.00 | $265.16 | $364.16 |
| Scale, $299.00 a month | $0.297 (10% off) | $356.40 | $350.00 | $6.40 | $305.40 |
At list price, 1,200 × $0.33 = $396.00 of usage. Growth applies 4% off, so 1,200 × $0.3168 = $380.16 in usage. After $115.00 in monthly credit, $265.16 comes from top-ups, and the total monthly cost is $99.00 + $265.16 = $364.16. Scale applies 10% off, so 1,200 × $0.297 = $356.40, of which $350.00 is credit and $6.40 comes from top-ups, for $299.00 + $6.40 = $305.40. On Free, $10.00 of monthly credit covers 30 × $0.33 = $9.90, so it covers 30 completed full ID checks with $0.10 left if the credit is used only for those checks.
Two cost notes. Sandbox testing is free and unlimited, so build the whole gated flow there first. Some no-match database lookups and retries are billable, and the pricing page in the docs lists them.
Review is the boundary the price does not cover. If automated checks flag warnings, the session moves to In Review and a person approves, declines or requests resubmission in the Console. The Console shows warnings on the verification session. A session in review has no Approved decision, so the checkout remains blocked or the after-purchase order stays on hold. Plan who watches that queue before you switch gating on for a whole category.
Staging checklist before you touch the live catalog
- An ordinary cart with no in-scope item: checkout completes with no verification prompt and no billable check.
- A mixed cart with one in-scope item and one ordinary item: the verification section appears, and the order is released only after a server-confirmed
Approveddecision. - An exempt product under All products except selected: a cart holding only that product checks out without verification.
- A guest after-purchase order: place the order, verify from the order page with its valid order key, and confirm the order releases after the server confirms approval.
Sources
- Didit docs: WordPress KYC plugin, WooCommerce age check
- Didit docs: API authentication, key scopes and 401, 403, 404 responses
- Didit docs: webhooks, HMAC signing and signature headers
- Didit docs: verification statuses and session lifecycle
- Didit docs: retrieve session decision API
- Didit docs: create session API
- Didit docs: pricing and billing rules
- Didit docs: sandbox testing
- Didit pricing page and pricing as JSON
- Didit Verify plugin 0.3.4 release
- Didit Verify on WordPress.org
Create a free Didit account, install plugin 0.3.4, and gate one test product in the sandbox before you touch the live catalog: business.didit.me. No sales call.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
How do I require ID verification for only some products in WooCommerce?
Install Didit Verify 0.3.4 or later, set Mode to API Session with your workflow ID and API key, enable Require identity verification at checkout, set Product Scope to only selected products, then tick Didit verification under Product data → Advanced on each product that needs it. A cart holding at least one checked product requires verification, and carts without one check out as before. In Checkout mode the server must confirm an Approved decision before the order can be placed, and in After purchase mode the order stays on hold until it does.
How do the three Product Scope options differ?
All products puts every product in scope, so every cart needs verification. Only selected products puts checked products in scope, so a cart needs verification when it holds at least one checked product. All products except selected exempts checked products and puts unchecked products in scope, so a cart needs verification when it holds at least one unchecked product. In every case a cart requires verification if any item in it falls within the active scope.
Do I need to verify separately for each product in a mixed cart?
No. The requirement is evaluated at cart level: a cart requires verification if any item in it falls within the active scope, and one cart-level verification requirement is created when any item in the cart is in scope. The plugin applies the rule at the cart level, not per line item.
What is the difference between Checkout mode and After purchase mode?
In Checkout mode the server must confirm an Approved decision before the shopper can place the order. In After purchase mode the shopper can place the order, and that order stays on hold until the server confirms approval. After purchase mode needs the webhook URL and matching secret so signed status updates can release approved orders.
Why is a WooCommerce order still on hold after the customer verified?
The order is released only when the server confirms an Approved decision, so a hold usually means the webhook URL or secret is missing or wrong, or the session is not approved yet. In the documented plugin setup, check the webhook URL and the matching secret in Settings → Didit Verify. For a custom webhook handler, verify X-Signature-V2 against the sorted, Unicode-preserved canonical JSON of the body, and separately require the absolute difference between the server time and X-Timestamp to be at most 300 seconds.
Can guest customers complete verification after purchase?
Yes. Guest customers verify from the order page using its valid order key, so no account is needed. In After purchase mode the order stays on hold until the server confirms approval.
How do I hide page content until a customer is verified?
Use the [didit_gate] shortcode on the page or post, and place the [didit_verify] button where a logged-in user can start the check. The gate depends on a server-confirmed Approved decision from a session created in API Session mode, because a UniLink completion alone does not open protected content. Use [didit_status] where you want to show a logged-in user their verification status.
What does the Didit status shortcode require?
The [didit_status] shortcode shows verification status for a logged-in user and uses server-confirmed approval in API Session mode. It needs an Approved decision confirmed by the server, which UniLink mode does not produce. If a member's earlier approval was never confirmed by the server, they must verify again after the store upgrades from a version older than 0.3.2.
What happens if an approved customer is later declined or their document expires?
From version 0.3.4, protected content becomes unavailable if the approved verification is later declined, expires or returns to review. Access requires a server-confirmed Approved decision. For a session in review, check its decision in the Didit Console.
Do I need an API key, or is a UniLink URL enough?
A UniLink URL is enough to preview the flow, but not to gate anything. Content gates and WooCommerce verification requirements need API Session mode with a workflow ID and API key, because the plugin has to read a server-confirmed decision before it releases an order or a page.
How much does product-level verification cost per order?
Each completed full ID check is $0.33, made of ID document $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. Only carts that fall within the active Product Scope trigger a check, so carts outside the scope cost nothing. The first organization created with an eligible work email for a company domain gets $10.00 of monthly Free-plan credit, which covers 30 completed full ID checks.
How do the plan discounts change the per-check price?
Growth costs $99.00 a month, gives $115.00 of monthly credit and takes 4% off every Didit price, so a full ID check is $0.3168. Scale costs $299.00 a month, gives $350.00 of monthly credit and takes 10% off, so the same check is $0.297. Usage is paid from the month's plan credit first, then from top-ups.
Does the plugin work with WooCommerce block checkout?
Yes. The server-confirmed Approved requirement applies to both classic and block checkout. The session ID is saved to the order for reference.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


