Gå til hovedindhold
WooCommerce

WooCommerce Plugin

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

WooCommerce Plugin

The Aldersverificering WooCommerce plugin adds a MitID age gate to your store. Customers must verify their age before they can complete a purchase containing age-restricted products.

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 the gate by disabling JavaScript or manipulating the browser — the server always validates the token before completing the order.

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