Commerce.ProductType
EnumDefines the type of product that can be purchased in a Lens.
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: not supported
- Camera Kit Mobile: not supported
- SnapchatNot supported — Available on SPECS only
- SPECSFully supported
- Camera Kit WebNot supported — Available on SPECS only
- Camera Kit MobileNot supported — Available on SPECS only
Defines the type of product that can be purchased in a Lens.
Index
Enumeration Members
Enumeration Members
Consumable
Consumable:
number
SPECS
A consumable product that can be purchased multiple times. Once acknowledged after delivery, the product is consumed and becomes available for purchase again. Typical use cases include virtual currency, in-game items, energy, and other expendable resources.
Since
Lens Scripting Version 377
NonConsumable
NonConsumable:
number
SPECS
A one-time purchase that grants permanent access or ownership to an item or feature. Once purchased, it does not expire or need to be repurchased. Examples include unlocking a character, a specific effect, or a permanent filter.
Subscription
Subscription:
number
SPECS
An auto-renewing product that grants access for a recurring billing period. Subscription products expose their available plans through Product#subscriptionOfferDetails, and an active subscription renews automatically until it is canceled or expires.
Since
Lens Scripting Version 377
Unknown
Unknown:
number
SPECS
A placeholder indicating an unknown product type, which usually suggests that the product catalog is not properly configured.