Selling age-restricted products
This guide answers the questions merchants ask most when a law sets a minimum age for what they sell: energy drinks, alcohol, tobacco and vapes, knives, ammunition and similar products.
Most age laws have the same three parts:
- A minimum age (for example 16, 18 or 21)
- A place where the law applies (a country, state or province)
- The products it covers
Real ID handles each part separately, so you only verify the orders the law covers.
Set the minimum age
Open Settings, then the Rules tab, and scroll to Age Requirements. Choose 18+, 21+ or set a custom age, like 16.
Real ID reads the date of birth on the customer's ID. If the customer is younger than your minimum age, the ID check fails automatically. See Age verification.
The minimum age applies to every ID check on your store. If you sell products with different age limits (for example, 16+ energy drinks and 18+ vapes), set the highest age that applies, or contact us to talk through your setup.
Only verify orders the law covers
By place
- U.S. states only: use the U.S. shipping states trigger
- Canadian provinces, Australian states or U.K. nations: use an advanced rule with the Shipping to state/province condition. It supports the United States, Canada, Australia and the United Kingdom.
- Whole countries: use an advanced rule with the Shipping to country condition
By product
- Pick products or collections with the Specific products trigger
- Or require ID with a product tag, so your team controls it from the product catalog
By place and product
Most laws need both: for example, energy drinks shipping to Quebec. Use an advanced rule that matches ALL of:
- Shipping to state/province: Canada, Quebec
- Products in collection with a specific metafield: your energy drink collection
Orders that ship elsewhere, or don't contain a restricted product, check out as usual. See the examples for more recipes.
Products that don't need ID
Mark the products that do need ID, not the ones that don't. Products outside your restricted collection, like merchandise, never trigger a check. There's no "doesn't contain this product" condition yet.
Advanced rules are available on the Automate and Protect plans. In test mode, you can build and try advanced rules before you choose a plan.
Choose when customers verify
| Flow | When the customer verifies | Good to know |
|---|---|---|
| Before checkout | Before they can check out | Works on every Shopify plan |
| During checkout | Inside the checkout, before they can pay | Needs Shopify Plus |
| After checkout | After the order is placed, by email, SMS or the Thank You page | You need to hold orders until they're verified |
If the law says you can't sell to an underage customer, verifying before or during checkout is simplest: an unverified customer can't place the order, so there's nothing to hold or cancel.
After-checkout verification depends on customers opening their email or SMS. You'll want automatic reminders and a way to hold orders until they're verified.
Orders that don't go through your checkout
Some orders never reach your checkout: subscription renewals, or draft orders you mark as paid in the Shopify admin. (Point of Sale orders are never verified automatically.)
If you verify during checkout, Real ID still checks these orders when they're created. If an order matches your rules and the customer hasn't been verified before, Real ID sends them an ID check by email or SMS. Customers who verified during an earlier checkout aren't asked again.
With the after checkout flow, every order is checked the same way, wherever it came from.
Hold orders until the customer is verified
Use Shopify Flow to hold orders that need verification, and release them automatically with the Real ID – Order ID verified trigger. Real ID's Shopify Flow triggers and actions are available on the Automate and Protect plans.
Repeat customers
Real ID remembers verified customers, so they verify once, not on every order.
When a customer who isn't logged in enters an email address that already has a verified ID, Real ID sends a 6-digit confirmation code to that email address. This stops someone from using another person's verification.
You can turn off Require email confirmation code for returning customers, but we don't recommend it if you sell age-restricted products. Without it, anyone who types in a verified customer's email address could skip verification.
Test your setup before going live
What test mode covers
In test mode, Real ID works end to end, with a few differences:
- Your triggers and rules run, so you can confirm the right orders get an ID check
- Customers see the real verification flow and your branding
- Every ID check passes with mock data. Test mode can't show you a failed check or an underage customer.
- Emails go to your store's contact email, not to customers, and SMS isn't sent
Test real results, like an underage customer
To see real results, including a check that fails your minimum age, choose a plan on a staging or test store, not your live store. Every plan starts with a 14-day free trial that includes a set number of free ID checks. Settings → Billing shows how many you have left.
Test mode can only be turned on once per store. If you'd like a test store put back in test mode after you're done, contact us.
Test as a new customer
During checkout, a verification belongs to that checkout. If you verify and then change the email address in the same checkout, you'll still show as verified.
To test as a different customer, start a new checkout in a private browser window, with an email address you haven't verified before.
Match the verification button to your brand
In the during checkout flow, the ID verification block uses Shopify's checkout components, so Shopify's checkout styles control its colors.
To change the button color, open Settings → Checkout in your Shopify admin, click Customize, and change the colors in the checkout editor's settings. Your colors in Real ID's Appearance settings apply to the ID verification flow your customers open from the checkout. See Branding.
Which plan do I need?
| You want to | You need |
|---|---|
| Combine a place and products, or target Canadian provinces, Australian states or U.K. nations | The Automate or Protect plan |
| Hold and release orders automatically with Shopify Flow | The Automate or Protect plan |
| Verify inside the checkout | A Shopify Plus store |
See pricing for plan details.