Description
The application includes a Premium pricing page (test_app/lib/premium_page.dart) with subscription tiers, but there is no backend payment processing integration. The upgrade buttons do not trigger any payment flow, making the premium feature completely non-functional.
Location
test_app/lib/premium_page.dart – UI exists but buttons have no backend action.
backend/services/integration_placeholders.py – Payment integration is listed as a placeholder.
Recommendation
Integrate a payment provider such as Stripe:
- Add
POST /payments/create-checkout-session using the Stripe Python SDK.
- Handle Stripe webhooks (
payment_intent.succeeded) to update subscription status in the database.
- Add a
subscription_tier column to the users table.
- Gate premium features (e.g., unlimited AI queries, priority lawyer matching) behind a subscription check middleware.
Severity
Medium
Description
The application includes a Premium pricing page (
test_app/lib/premium_page.dart) with subscription tiers, but there is no backend payment processing integration. The upgrade buttons do not trigger any payment flow, making the premium feature completely non-functional.Location
test_app/lib/premium_page.dart– UI exists but buttons have no backend action.backend/services/integration_placeholders.py– Payment integration is listed as a placeholder.Recommendation
Integrate a payment provider such as Stripe:
POST /payments/create-checkout-sessionusing the Stripe Python SDK.payment_intent.succeeded) to update subscription status in the database.subscription_tiercolumn to theuserstable.Severity
Medium