Skip to content

[Enhancement] Payment processing not implemented — Premium page is non-functional #12

Description

@github-actions

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:

  1. Add POST /payments/create-checkout-session using the Stripe Python SDK.
  2. Handle Stripe webhooks (payment_intent.succeeded) to update subscription status in the database.
  3. Add a subscription_tier column to the users table.
  4. Gate premium features (e.g., unlimited AI queries, priority lawyer matching) behind a subscription check middleware.

Severity

Medium

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions