Cal. Health & Safety Code § 108930
(c) It shall be a defense to a violation of subdivision (a) to demonstrate either of the following:
(1) The person, retailer, or online marketplace is able to demonstrate both of the following:
(A) The purchaser acknowledged before purchase they were at least 18 years of age through an effective system created by the person, retailer, or online marketplace that is capable of verifying the age of purchasers to ensure they are above the minimum legal age to purchase a product. This system shall not completely rely on any of the following: