spectacles-commerce
Installation
SKILL.md
Spectacles CommerceKit — Reference Guide
CommerceKit enables handling in-app purchases (IAP) for non-consumable digital items directly inside Custom Lenses on Spectacles.
Note: Commerce capabilities are in Closed Beta and require your Lens Studio account to have proper onboarding.
Setup & Architecture
Commerce uses the CommerceKitModule. You define a local "Product Catalog" representing the items you are selling.
Prices in CommerceKit APIs are always expected in Integer Cents (e.g. $2.99 is passed as 299).
1. Creating the Commerce Client
Initialize the client with your catalog. You must provide a callback to handle asynchronous purchase results.