Skip to main content

How to Add Identity Verification to WordPress and WooCommerce (2026)

Use Didit Verify to add identity or age checks to WordPress and WooCommerce. Full KYC costs $0.33 per completed check. Checkout approval and protected content require API Session mode.

How to Add Identity Verification to WordPress and WooCommerce (2026)

Contents

In this guide

Jump to the part you need.

We built Didit Verify for WordPress sites and WooCommerce stores that need identity or age checks. It installs as a plugin, gates checkout or holds an order after purchase, and runs the checks in the workflow you configure. Full KYC costs $0.33 per completed check, age estimation $0.10 and AML screening $0.20. The main caveat: content gates and checkout approval need API Session mode with a workflow ID and an API key, not a UniLink preview link.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Didit Verify on WordPress and WooCommerce at a glance
ItemDetail
Install routeWordPress.org listing (didit-verify) or the 0.3.4 release ZIP from GitHub
How it runsA PHP plugin that starts sessions from your WordPress server; the API key stays on the server
RequirementsWordPress 6.0 or higher, PHP 7.4 or higher, a Didit Console account
ModesUniLink for previews; API Session for content gates and checkout approval
PriceFull KYC $0.33 per completed check, age estimation $0.10, AML screening $0.20. On the Free plan, the first organization created with an eligible work email for a company domain gets $10 in monthly credit. Phone verification codes are excluded. The sandbox is free on every plan.
WooCommerceCheckout gate with product scope and placement, or after-purchase mode that holds the order until the server confirms approval
Shortcode[didit_verify], with per-page text and display overrides

Checkout gating or after-purchase gating

Checkout gating asks for verification before the order can be placed. The shopper needs an Approved decision confirmed by the server, and the plugin checks that the session belongs to the current shopper and has not already been used for another order. This works with classic and block checkout alike.

After-purchase gating lets the order be placed and then holds it. The order stays on hold until the server confirms an Approved decision, released by the signed status updates from the webhook you configure in Settings → Didit Verify. A guest verifies from the order page using its valid order key. A Declined or In Review decision keeps the order on hold.

Both modes use the same Product Scope setting: all products, only selected products, or all products except selected ones, with individual products marked under Product data → Advanced. A cart that holds at least one product that needs verification requires it.

What Didit Verify adds to a WordPress site

Didit Verify starts sessions from your WordPress server and keeps the API key there. We run the checks configured in your Didit workflow. You build a workflow once in the Didit Console and the plugin starts sessions against it from WordPress. You get three surfaces: a verification button for any page, a checkout gate for WooCommerce, and PHP action hooks for custom logic, documented in the WordPress integration guide.

The checks come from the workflow. The published full KYC check includes ID document verification, passive liveness, face match, and device and IP analysis. You can add AML screening against 1,300+ lists, age estimation, proof of address, phone and email verification, NFC chip reading or database validation on top. We support 14,000+ document types across 220+ countries and territories, and the hosted flow runs in 54 languages. 4,000+ companies use Didit.

The hosted Didit verification flow a shopper sees after clicking the verify button
What your shopper sees after clicking Verify: document capture, selfie and a decision screen.

Age verification for WooCommerce and WordPress pages

Choose a full ID check or an adaptive age workflow based on what your store needs to verify.

Full ID check. The shopper completes an ID document scan, passive liveness and a face match. The decision must be Approved and confirmed by the server before the order can be placed. That is the $0.33 full KYC price, split as ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03.

Adaptive age verification. The Adaptive Age Verification template starts with selfie age estimation and can fall back to an ID check. Age estimation costs $0.10 per completed check.

Selfie capture step used for liveness and age estimation
The selfie step that runs liveness and, in an adaptive workflow, age estimation.

Prerequisites: plan, client, permissions

What you need before you start
RequirementDetailWhere
Didit planA Didit Console account. The sandbox is free on every plan.didit.me/pricing
Console accessAn account with access to Workflows and to API & Webhooks, which is where the key and the workflow ID livebusiness.didit.me
WorkflowA published workflow containing the checks you want to run at checkout or on a pageWorkflows
WordPress siteWordPress 6.0 or higher and PHP 7.4 or higher. Upgrade PHP first if your host runs an older version.wp-admin
WordPress roleAdministrator, to upload a plugin and edit its settingswp-admin
WooCommerceOnly needed for the checkout gate; the shortcode works without itwp-admin
Webhook URL and secretShown in Settings, Didit Verify; needed so signed status updates can release approved after-purchase ordersPlugin settings

Install Didit on WordPress in seven steps

  1. Create the workflow. Sign in at business.didit.me, open Workflows in the sidebar, click New workflow and choose Verifying users. Start from a template (KYC, or Adaptive Age Verification if you only need age gating) or start empty and add the steps in the editor. Publish the workflow.
  2. Copy two values. The API key is under API & Webhooks. The Workflow ID is under Workflows, on the workflow you just published.
  3. Install the plugin. In wp-admin go to Plugins → Add New → Upload Plugin, choose didit-verify-0.3.4.zip from the 0.3.4 release, click Install Now, then Activate. The plugin is also listed on WordPress.org. Use version 0.3.4 or later for the behavior described here, including revocation of protected access if an approved verification later expires, is declined or returns to review.
  4. Set API Session mode. Open Settings → Didit Verify, set Mode to API Session, paste the Workflow ID and the API key, and save. UniLink mode needs only a workflow URL and is useful for previewing the flow, but a UniLink completion does not grant access to protected content or approve an order.
  5. Configure session and display options. Vendor Data defaults to the WordPress user ID, for example wp-42; switch it to the user email, a custom prefix or off. Set the Callback URL (Didit appends verificationSessionId and status as query parameters), the Callback Method (initiator, completer or both), the Language, the Display Mode (modal or embedded), the close button, the exit confirmation, auto-close and debug logging. Style the button under Button Appearance; the preview updates as you change values.
  6. Choose checkout or after purchase, and wire the webhook. In Settings → Didit Verify → WooCommerce check Require identity verification at checkout, pick the position (before Place Order is recommended), set Product Scope, and edit the Section Title, Checkout Message and Post-purchase Message if you want your own copy. Enable Send Billing Data only if you want the customer's name, email, phone and address sent for pre-fill and cross-validation. For after-purchase mode, use the webhook URL shown in Settings → Didit Verify for the Didit webhook destination. Follow the WordPress integration guide to configure the matching signing secret before testing after-purchase approval. Staging result to check before going live: place a test order, confirm it lands on hold, then confirm it is released only after a signed status update carrying Approved arrives.
  7. Add the button to the rest of the site. Put [didit_verify] on any page that needs a verification button. Override the text per page with [didit_verify text="Verify Now" success_text="Done!"], or force inline display with [didit_verify mode="embedded"]. Content gating needs API Session mode and a server-confirmed Approved decision; the WordPress integration guide covers that setup.

Two ways to install the plugin

Pick one installation method
MethodBest forWhat you need
WordPress.org listingMost sites, updates from the Plugins screenAdministrator on wp-admin; check the version before installing
Release ZIP from GitHubPinning 0.3.4, or when the directory has an older versionThe didit-verify-0.3.4.zip file

Developer options without WordPress

For a custom integration, create a verification session with the Sessions API. It returns a session URL you redirect the shopper to:

curl -X POST https://verification.didit.me/v3/session/ -H "x-api-key: $DIDIT_API_KEY" -H "Content-Type: application/json" -d '{"workflow_id":"WORKFLOW_ID","vendor_data":"wp-42","callback":"https://example.com/verified"}'

The response carries session_id, url and session_token. Redirect to url, then read the outcome from the webhook or from GET /v3/session/{session_id}/decision/. Register a webhook destination with POST /v3/webhook/destinations/ and subscribe to status.updated and data.updated. Verify the X-Signature-V2 header before you trust a payload.

Implementation note for custom checkouts

  • Bind the session to the shopper on your server with vendor_data, and store the returned session_id against the cart or order.
  • Allow one order per session. Reject a session that was already used for another order.
  • Take the decision from signed webhooks, and fall back to GET /v3/session/{session_id}/decision/ when a delivery is missing.
  • Treat verificationSessionId and status in the redirect URL as navigation and display values only. Do not grant access or place an order from those parameters.

If you build with an AI assistant, the hosted server setup is documented at Didit MCP setup.

Field and event mapping

What Send Billing Data sends to Didit
WooCommerce valueWhat is sentUse
Billing first name and last nameCustomer namePre-filling and cross-validation
Billing emailCustomer emailPre-filling and cross-validation
Billing phoneCustomer phonePre-filling and cross-validation
Billing address, city and postcodeCustomer addressPre-filling and cross-validation
Billing countryCountry codeConverted from WooCommerce's alpha-2 format to Didit's alpha-3 format
ID document capture screen inside the verification flow
The document step in the hosted flow that the customer completes on your site.

Vendor Data is a separate setting that links each verification to a user in your Didit dashboard. It defaults to the WordPress user ID, such as wp-42. You can use the user's email, set a custom prefix or disable it. The plugin saves the session ID to the order for reference.

Status handling in checkout and after-purchase mode

What each Didit status means for each gating mode
StatusCheckout gatingAfter-purchase gating
ApprovedThe order can be placed once the server confirms the decisionSigned, server-confirmed approval releases the held order
DeclinedCheckout remains blockedThe order already placed remains on hold
In ReviewCheckout remains blocked until the server confirms ApprovedThe order stays on hold until the server confirms Approved
Not StartedThe shopper has not opened the verification link yetNo release yet; the order stays on hold
In ProgressThe shopper is completing the checksNo release yet; the order stays on hold
AbandonedThe shopper started the session but did not finish in timeThe order stays on hold
ExpiredThe session timed out before the shopper opened the linkThe order stays on hold
ResubmittedCheckout remains blocked until the server confirms ApprovedThe order stays on hold until the server confirms Approved
Kyc ExpiredAn expired verification cannot satisfy the server-confirmed approval requirement for a new orderA held order still requires server-confirmed approval for release

Test in the sandbox before you take real IDs

Every plan includes a sandbox, and sandbox sessions are never billed. In sandbox, every external provider is mocked: extracted data and outcomes come from a scenario or a magic value, not from the pixels you upload, so you can reproduce any result on demand. Captured media itself, meaning documents, selfies, video and proof-of-address files, is stored for real, exactly like a live session. Use sample documents, never real IDs.

Set up the test with a WooCommerce test order paid by a test payment method, and put a matching Didit sandbox API key and workflow ID in Settings → Didit Verify. For a plugin-created session, arm the scenario while the session is Not Started with POST /v3/session/{session_id}/sandbox/arm/. For a custom Sessions API integration, you can pass sandbox_scenario in the create request.

  1. Approved. Arm an approval scenario and place the test order. Checkout mode: the order can be placed only after the server confirms Approved. After-purchase mode: the order lands on hold and the signed approval releases it.
  2. Declined. Arm a decline scenario. Checkout mode: the order cannot be placed. After-purchase mode: the order stays on hold.
  3. In Review. Arm a scenario that returns In Review. Checkout mode: checkout stays blocked until the server confirms Approved. After-purchase mode: the order stays on hold until the server confirms Approved.
  4. Access revocation. Approve a user, confirm that gated content opens, then move the session to Declined or let it expire. On 0.3.4 or later, access is revoked.

Check the redirect parameters only if a Callback URL is configured. The sandbox allows 500 session creates per 24 hours per application, and sandbox webhooks carry "environment": "sandbox".

A verification session in the Didit Console showing its checks and warnings
The session view you compare against the order in WordPress while testing.
Common failures and the fix
SymptomCauseFix
403 with a permission message from verification.didit.meMissing API keyPaste the key in Settings, Didit Verify and save
401Key is wrong, revoked or expiredIssue a new key under API & Webhooks
400 response that identifies an invalid workflow IDThe workflow ID does not match a published workflowCopy the published workflow ID again from Workflows
400 on callbackCallback is not on one of the application's allowed domainsUse a URL on an allowed origin, or add the domain
Approved but the order is still on holdAfter-purchase mode is waiting on the signed server updateConfigure the webhook URL and secret shown in Settings, Didit Verify
Webhook delivery droppedA 5xx, 404 or a timeout triggers retries, and the delivery can be dropped after the retries are exhaustedAnswer 2xx fast, process afterwards, then resend from the destination delivery log
Content locked for previously approved usersThe site upgraded from a version older than 0.3.2Ask users whose earlier approval was not confirmed by the server to verify again before they access gated content or complete a verification-required checkout

Disconnecting the plugin

Remove the [didit_verify] shortcodes from your pages first, so nothing renders an empty block. Then go to Plugins, deactivate the plugin and delete it. If you created a webhook destination in the Console only for this installation, delete that destination too.

Worked cost example

Take a shop with 1,200 orders a month. 250 orders need a full ID check at checkout, the same 250 get AML screening, and 60 orders are age-only and complete only the age-estimation step through the adaptive template.

  • 250 full KYC checks: 250 x $0.33 = $82.50
  • 250 AML screenings: 250 x $0.20 = $50.00
  • 60 age estimation checks: 60 x $0.10 = $6.00
  • Total at list price: $82.50 + $50.00 + $6.00 = $138.50 per month
Free and Growth compared for the same month of usage
LineFree, eligible organizationGrowth, 4% off
Usage at plan prices$138.50250 x $0.3168 = $79.20, plus 250 x $0.192 = $48.00, plus 60 x $0.096 = $5.76, so $132.96
Monthly plan credit$10.00$115.00
Covered by prepaid top-up credit$128.50$17.96
Monthly plan fee$0.00$99.00
Monthly total$128.50$116.96

For an eligible Free organization, $10.00 of monthly credit covers part of the $138.50, so prepaid top-ups cover the remaining $128.50. Growth costs $99.00 per month. After applying the $115.00 monthly credit, the remaining $17.96 comes from prepaid top-up credit. The plan fee plus that month's top-up usage totals $116.96.

Sources

Open the sandbox at business.didit.me, build your workflow and run a test order before you replace the sandbox credentials with your live API key and workflow ID. No sales call is needed to start.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I add age verification to a WooCommerce store?

Install Didit Verify, connect it in API Session mode, then check Require identity verification at checkout under Settings → Didit Verify → WooCommerce. Set the position to before Place Order and limit the product scope if only some items are age-restricted. The order is accepted only after Didit returns Approved and the server confirms it.

Is the Didit plugin free to use?

We do not publish a separate price for the plugin. You pay per completed check from prepaid credit: $0.33 for a full KYC, $0.10 for age estimation and $0.20 for AML screening. On the Free plan, the first organization created with an eligible work email for a company domain gets $10 in monthly credit. Phone verification codes are excluded.

How do I test the plugin for free?

Create a sandbox application in the Console, copy its API key into Settings → Didit Verify with a matching sandbox workflow ID, and place a WooCommerce test order. Read the scenario catalog at GET /v1/sandbox/scenarios/ and arm a scenario on the plugin-created session while it is Not Started. Sandbox sessions are never billed and no external provider is called.

Can I use the plugin without an API key?

Only in UniLink mode, which needs a workflow URL and is useful to preview the flow. A UniLink completion does not grant access to protected content or approve an order, so any real gate or checkout requirement needs API Session mode with a workflow ID and an API key.

How much does one verification cost on WordPress?

A full KYC check is $0.33, made of ID document verification $0.15, passive liveness $0.10, face match $0.05 and device and IP analysis $0.03. AML screening is $0.20 extra and age estimation is $0.10. You are billed per completed check from prepaid credit.

Which WordPress and PHP versions does the plugin need?

WordPress 6.0 or higher and PHP 7.4 or higher. If your host runs an older PHP version, upgrade it before installing. Use version 0.3.4 or later for the behavior described here, including revocation of protected access if an approved verification later expires, is declined or returns to review.

Can I restrict content to verified users only?

Content gating needs API Session mode with a workflow ID and an API key, plus a decision confirmed by the server. The WordPress integration guide covers the setup. From 0.3.4, protected access is revoked if an approved verification later expires, is declined or returns to review.

What happens if a customer fails verification at checkout?

In checkout mode the order cannot be placed. An In Review session keeps checkout blocked until the server confirms Approved. A decline or resubmission keeps checkout blocked.

What happens to an order that is already placed and then held?

In after-purchase mode the order stays on hold. Signed status updates from the webhook you configure in Settings → Didit Verify release it once the server confirms Approved, and a guest can verify from the order page using the order key. A Declined or In Review decision keeps the order on hold.

Does the plugin send customer billing data to Didit?

Only if you enable Send Billing Data. When it is on, the customer's name, email, phone and address are sent for pre-filling and cross-validation, and country codes are converted from WooCommerce's alpha-2 format to Didit's alpha-3 format. Vendor Data is a separate setting. The plugin saves the session ID to the order for reference.

How do I remove the plugin later?

Remove the [didit_verify] shortcodes from your pages, then deactivate and delete the plugin on the Plugins screen. Delete a webhook destination in the Console only if it was dedicated to that installation.

Can I run the same checks without WordPress?

Yes. Create a verification session with the Sessions API and drive it from your own checkout. For AI-assisted integration, the hosted server setup is documented at Didit MCP setup.

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.