Compare commits

...

10 Commits

Author SHA1 Message Date
Johannes
0851e65a9a Merge branch 'main' of https://github.com/formbricks/formbricks into simplify-stripe 2025-10-28 09:11:23 +01:00
Johannes
7df0e8e9b9 Merge branch 'main' of https://github.com/formbricks/formbricks into simplify-stripe 2025-10-27 13:57:53 +01:00
Johannes
e3679d4a2d clean up locale files 2025-10-27 11:53:58 +01:00
Johannes
9bdbe50a83 add logs 2025-10-27 10:43:36 +01:00
Johannes
01e8333acd bring back monthly reset 2025-10-27 10:23:09 +01:00
Johannes
db2823504f fix code rabbit issue 2025-10-27 09:55:25 +01:00
Johannes
95bbe24109 remove not needed migration 2025-10-23 19:34:03 +02:00
Johannes
07a1b687f8 final tweaks 2025-10-23 19:33:02 +02:00
Johannes
e8636ceacb Merge branch 'main' of https://github.com/formbricks/formbricks into simplify-stripe 2025-10-22 17:32:38 +02:00
Johannes
8e30564103 refactor: simplify Stripe integration and rename enterprise to custom
BREAKING CHANGES:
- Remove SCALE plan from PROJECT_FEATURE_KEYS enum
- Rename PROJECT_FEATURE_KEYS.ENTERPRISE to PROJECT_FEATURE_KEYS.CUSTOM
- Update trial period from 30 to 15 days
- Remove invoice.finalized and subscription.created/updated webhook handlers

FEATURES:
- Hardcode billing limits instead of syncing from Stripe metadata
- Simplify checkout handler to always use hardcoded Startup plan limits
- Simplify subscription creation flow (single code path)
- Create database migration to rename existing enterprise plans to custom

REMOVED:
- subscription-created-or-updated.ts (125 lines of complex metadata parsing)
- invoice-finalized.ts (no longer needed)

FILES CHANGED:
- Remove SCALE plan from constants and billing limits
- Update type definitions to use custom instead of enterprise
- Simplify webhook handlers (4 → 2 handlers)
- Update all UI components to reference custom plan
- Create database migration for plan renaming
- Update all tests to reference custom instead of enterprise

IMPACT:
- Reduces Stripe integration complexity by ~80%
- Eliminates metadata sync failures
- Makes billing more predictable and maintainable
- Aligns code naming with UI (custom vs enterprise)
- Reduces trial period from 30 to 15 days

Refs: #simplify-stripe-integration
2025-10-20 18:55:22 +02:00

Diff Content Not Available