Linux 软件免费装

secuveri Age Check for WooCommerce

开发者 aguenes
更新时间 2026年11月24日 21:31
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

age verification checkout age check id verification tobacco

下载

0.2.0

详情介绍:

Mark products or whole categories as age-restricted. When a cart contains one, the buyer confirms their age with secuveri in a window on your shop: with a selfie and an age estimate, or with their ID document. Your shop only lets the order through once it has received and verified a signed, approved result. Carts without restricted products are not affected. Since 1 October 2024 the Swiss Tobacco Products Act (TabPG) forbids selling tobacco and nicotine products to people under 18, online too. This plugin was written with that case in mind. It is a tool, not legal advice: check which rules apply to your shop. Features How it works
  1. The buyer clicks "Verify your age" (or "Place order"), or, with the check after checkout, "Confirm my age" after ordering.
  2. Your shop asks secuveri for a verification session for this cart.
  3. The secuveri flow opens in a window on the checkout page. On a computer it shows a QR code so the buyer can continue on their phone.
  4. When the buyer has finished, your shop reads the signed result from secuveri, checks its ES256 signature against secuveri's published keys, and checks that it is for this cart and your workflow, that it was approved, and that the age check covers the products in the cart.
  5. The buyer places the order. The pass is valid for 30 minutes and only for this cart. With the check after checkout, the shop releases the order's hold instead.
Uses an external service This plugin relies on secuveri, an identity verification service run by secuveri in Switzerland. You need a secuveri account and API key. Verifications in live mode are charged by secuveri; sandbox sessions are free. What is sent, and when: secuveri stores verification data in the EU and deletes personal data and media on its retention schedule.

安装:

  1. Install and activate the plugin. WooCommerce must be active.
  2. In the secuveri dashboard, create a published workflow for the age check, for example Liveness check, Age estimation, Identity document and Face match (the ID is only asked when the estimate is not clear), and set its minimum age (for example 18). For "Always check the ID", add a second workflow with Identity document, Liveness check and Face match.
  3. Under Settings > Branding > Websites that may embed the flow, add your shop's address (for example https://shop.example.com). WooCommerce > Settings > secuveri shows the exact value.
  4. Create an API key under Settings > API keys that can create sessions and read results. Use a sk_test_ key for the sandbox.
  5. Go to WooCommerce > Settings > secuveri and enter the environment, API key, organization id, workflow id(s) and default minimum age, and choose when and how buyers confirm their age.
  6. Under Settings > Webhooks in the secuveri dashboard, add the webhook URL shown on the settings page and paste its signing secret into the plugin settings.
  7. Mark products (Product data > General > Age restricted) or categories (Products > Categories) as age-restricted.
If your site sends a Permissions-Policy header, it must allow the camera for https://verify.secuveri.com and https://*.verify.secuveri.com, for example camera=(self "https://verify.secuveri.com" "https://*.verify.secuveri.com"). With a Content Security Policy, allow https://verify.secuveri.com in frame-src. The API key and webhook secret can also be defined in wp-config.php instead of the settings: define( 'SECUVERI_API_KEY', 'sk_live_...' ); and define( 'SECUVERI_WEBHOOK_SECRET', 'whsec_...' );.

屏幕截图:

  • The secuveri flow on the checkout page.
  • WooCommerce > Settings > secuveri.
  • The evidence on the order screen.

常见问题:

What data does my shop store?

On each order with restricted products: the secuveri verification id, the outcome, the method (for example ID document or age estimation) and the time of the verification. Nothing from the ID document. For logged-in customers the same values and the confirmed age are kept on their account, so they are not asked again; you can remove them on the user's profile, and they are part of WordPress's personal data export and erase. During checkout the WooCommerce session holds the cart reference, the verification id and a signed pass that expires after 30 minutes.

What data does secuveri receive and where is it stored?

secuveri receives the selfie and, when needed, the ID document photos directly from the buyer's device, plus the workflow id and a random cart or order reference from your shop. secuveri stores verification data in the EU. See https://secuveri.com/privacy and https://secuveri.com/verification-privacy.

Do I need to mention secuveri in my privacy policy?

Yes. Tell your buyers that age-restricted purchases are verified by secuveri, what is collected and where it goes. The plugin adds nothing to your privacy policy by itself.

Is this legal advice? Does it make my shop compliant?

No. The plugin enforces an age check before an order can be placed or shipped. Whether that meets the rules for your products and countries is for you to decide.

What happens when the buyer closes the window?

Nothing is lost. The order is not placed (or, with the check after checkout, stays on hold), and the buyer can open the check again to continue the same session.

Before or after checkout?

Before checkout is the safer choice: nothing is sold without a passed check. After checkout lets every order through at once and holds it until the buyer has confirmed their age; the thank-you page, the order in My account and the order emails link to the check. If you set up the webhook, a check the buyer finished after closing the page still releases the order.

What if the verification needs a manual review?

The buyer sees that the verification is being reviewed, and the cart stays as it is. Once a reviewer has approved it in the secuveri dashboard, the buyer clicks "Check again" and can place the order.

What if the buyer removes the restricted products?

Then the cart no longer needs a check and the checkout works as usual.

Several products have different minimum ages.

The highest minimum age in the cart applies. If the workflow uses age estimation, the plugin checks that the result covers that age. For a document-only workflow secuveri checks the workflow's own minimum age, so set it to the highest age you sell to.

How do I test without an ID document?

Use a sk_test_ key, set the environment to Sandbox and pick a sandbox scenario such as approved, declined_face_mismatch or review_liveness. Every session then finishes at once with that outcome. Orders placed this way get a note saying they were sandbox tests.

Does it work with express payment buttons?

With the check before checkout, the express buttons of WooPayments and WooCommerce Stripe are hidden on the pages of restricted products and on the cart page when the cart needs a check. Express buttons that go through the WooCommerce checkout or the Store API are checked like any other order. A button that creates orders some other way would bypass the check, so try your payment methods in sandbox mode with a restricted product.

更新日志:

0.2.0 0.1.0