Repository navigation
Conversation
jreinstra
commented
Mar 16, 2026
Contributor
- Add stripe-go v76 dependency
- Add Stripe config values (STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_ID) to .env
- Extend User model with subscription fields (StripeCustomerID, SubscriptionID, SubscriptionStatus, etc.)
- Create subscription API endpoints: checkout session, portal session, status, webhook
- Modify LoginCallback to redirect unsubscribed users to Stripe Checkout after auth
- Replace BusinessMiddleware with SubscriptionMiddleware (checks subscription_status)
- Update UserInfo API to return subscription_status and is_subscribed instead of business_mode_enabled
- Update frontend TUserInfo type and views to use is_subscribed
- Clean up all dead BusinessMode code from backend and frontend
- Update tests to reflect new subscription-based gating
- Add stripe-go v76 dependency - Add Stripe config values (STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_PRICE_ID) to .env - Extend User model with subscription fields (StripeCustomerID, SubscriptionID, SubscriptionStatus, etc.) - Create subscription API endpoints: checkout session, portal session, status, webhook - Modify LoginCallback to redirect unsubscribed users to Stripe Checkout after auth - Replace BusinessMiddleware with SubscriptionMiddleware (checks subscription_status) - Update UserInfo API to return subscription_status and is_subscribed instead of business_mode_enabled - Update frontend TUserInfo type and views to use is_subscribed - Clean up all dead BusinessMode code from backend and frontend - Update tests to reflect new subscription-based gating Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ents Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Tests cover: - isUserSubscribed with all status variants (active, trialing, canceled, past_due, empty, unknown) - SubscriptionStatus endpoint (no subscription, active, trialing, canceled) - CreateCheckoutSession unauthorized access - CreatePortalSession unauthorized access and no-stripe-customer error case - StripeWebhook with empty body and invalid signature - updateUserSubscription (active, canceled, past_due transitions) - updateUserSubscriptionFull (all fields updated, field transitions) - getOrCreateStripeCustomer with existing customer ID - SubscriptionStatus constants Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
scottmai
approved these changes
Aug 27, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.