How metadata is stored
Stripe limits metadata values to 500 characters. Cuprice splits the feature JSON across multiple keys:Reconstructing the feature list
Join allfeatureDetails_* keys and parse the JSON:
Feature object shape
Each feature in the array has:string
required
Feature name (e.g. “AI Prompt”)
string
required
Feature type: “Standard”, “Limits”, or “Usage Based”
number
required
Price for this feature
number
For Limits/Usage Based features, the purchased quantity
