Feature gating means controlling access to parts of your app based on what the user purchased. Cuprice makes this straightforward:Documentation Index
Fetch the complete documentation index at: https://docs.cuprice.io/llms.txt
Use this file to discover all available pages before exploring further.
- User pays via Stripe checkout
- Stripe redirects to your success URL with a
session_id - Your server calls the Cuprice Receipt API to get purchased features
- You enable only those features in your app
The flow
What you need
- A server-side API route (to call the Receipt API securely)
- A way to store the user’s subscription (database, localStorage for demos)
- Client-side UI that checks feature status
Two types of purchases
Regular Plans
User picks a pre-built plan like “Pro”. You look up which features that plan includes.
Custom Plans
User picks individual features. The exact list comes from the receipt metadata.
