- 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.
