Troubleshooting
Solutions to the most common issues with the Aldersverificering WooCommerce plugin.
Troubleshooting
Customer is stuck in a cart redirect loop
Symptom: The customer goes to checkout and is immediately sent back to the cart. Retrying has no effect.
Cause: The plugin is enabled but no API key is saved. Without a key, all verification attempts fail immediately.
Fix: Go to WooCommerce → Settings → Aldersverificering. If the status strip reads "Inactive — no API key configured", enter your API key in the Test Public Key or Production Public Key field and save.
See API Keys to create a key.
The verification popup is blocked by the browser
Symptom: Clicking Verify age does nothing, or a popup-blocked notification appears in the browser toolbar.
Cause: The customer's browser is blocking popups for your domain.
Fix: Change Verification Mode to Full-page redirect in Configuration. This replaces the popup with a full-page navigation to MitID, which is never blocked by popup blockers.
Verification passes but checkout is still blocked
Symptom: The customer completes the MitID flow successfully but sees an age verification error when they return to checkout.
Cause: The plugin is set to Production mode but only a test key (pk_test_) is saved. The server validates the JWT against the live JWKS endpoint, but the token was issued by the test endpoint — the signature check fails.
Fix: The environment and key must match:
| Mode | Key required |
|---|---|
| Test mode | pk_test_ |
| Production mode | pk_live_ |
Never use a test key while Production mode is active. See Going Live for the correct sequence.
Age gate is not showing for some products
Symptom: Some products go through checkout without triggering age verification.
Cause: Scope is set to Selected products & categories, and those products are not marked as requiring verification.
Fix: Choose one of:
- Switch Scope to All products to gate every product in the store
- Open each product's edit screen and tick Require age verification to purchase this product
- On the settings page, tick the relevant categories in the category grid
The settings page looks unstyled
Symptom: The Aldersverificering settings tab shows plain HTML — no cards, no styled toggle, no layout.
Cause: The browser cached the admin stylesheet before the latest version was loaded.
Fix: Hard-refresh the page with Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows/Linux). If the issue persists, open the page in a private/incognito window or clear your browser cache.
Production verifications are rejected (domain error)
Symptom: Customers see an error during the MitID flow, verifications fail silently, or the account event log shows 403 or "domain not allowed" errors.
Cause: Your live domain is not on the whitelist in your account.
Fix:
- Go to Account → Domains
- Add your domain — no
https://, no trailing slash (e.g.myshop.dk)
See Domains for exact format requirements.