Skip to main content
WooCommerce

WooCommerce Plugin

Require MitID age verification at checkout using the Aldersverificering WooCommerce plugin.

The Aldersverificering WooCommerce plugin adds a MitID age gate to your store. By default, customers must verify their age before continuing to checkout with age-restricted products.

Version 1.2.0 adds an optional Delivery outside Denmark setting. When enabled, eligible orders shipped outside Denmark can proceed without MitID. The setting is off by default, so updating the plugin preserves the existing checkout flow. See Delivery outside Denmark for setup and limitations.

How it works

  1. Cart scan — At checkout, the plugin checks whether the cart contains age-restricted products based on your targeting settings.
  2. Age verification — If required, the customer completes MitID age verification in a popup (or via redirect). The flow takes a few seconds using their existing MitID.
  3. Server-side validation — The verification result is a cryptographically signed JWT. The plugin validates the signature, expiry, and age claim server-side before the order is accepted.

Customers cannot bypass a required age check by disabling JavaScript or manipulating the browser. With the optional foreign-delivery setting enabled, the server checks the final shipping destination and order contents to decide whether verification is required; clicking the delivery link does not grant an exemption.

Requirements

RequirementMinimum version
WordPress6.0
WooCommerce7.0
PHP7.4
HTTPS / SSL certificateRequired

An SSL certificate is required because MitID verifications must run over HTTPS. Most managed WordPress hosts include SSL by default.

You also need an account at aldersverificering.dk with at least one API key. See API Keys.

Get started

  1. Install the plugin
  2. Configure the plugin
  3. Set age requirements per product or category
  4. Test the verification flow
  5. Go live

On this page