Regular plan checkout
- User clicks “Choose Plan” on a pricing card
- Cuprice calls
POST /api/stripe/checkoutwith the plan ID - Stripe creates a checkout session with the plan’s price
- User completes payment on Stripe’s hosted page
- Stripe redirects to your success URL with
session_id
Custom plan checkout
- User clicks “Create Now” on the custom plan card
- User selects individual features and quantities
- Cuprice calculates the total price automatically
- Cuprice calls
POST /api/stripe/checkout/customwith selected features - Same Stripe checkout flow as above
After payment
After successful payment, Stripe redirects the user to your Success URL. The URL contains asession_id parameter that you use to look up what was purchased.
