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:Feature name (e.g. “AI Prompt”)
Feature type: “Standard”, “Limits”, or “Usage Based”
Price for this feature
For Limits/Usage Based features, the purchased quantity
