-
Notifications
You must be signed in to change notification settings - Fork 89
Add stripe billing logic #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
23f3c60
add side bar nav in settings page
msukkari 04991fd
improve styling of members page
msukkari fde2179
wip adding stripe checkout button
msukkari 9665f14
wip onboarding flow
msukkari 33ae585
add stripe subscription id to org
msukkari e7f8f51
save stripe session id and add manage subscription button in settings
msukkari 3ad6c2d
properly block access to pages if user isn't in an org
msukkari 0a79f7c
wip add paywall
msukkari 8d2c731
Domain support
brendan-kellam 53dac38
merge domain changes
msukkari 6caed35
add back paywall and also add support for incrememnting seat count on…
msukkari 8ad6ba7
prevent self invite
msukkari 258585e
action button styling in settings and toast on copy
msukkari 84e8ec2
add ability to remove member from org
msukkari 0b4140f
move stripe product id to env var
msukkari 875f9b8
add await for blocking loop in backend
msukkari 193c7e0
add subscription info to billing page
msukkari e2c90b8
handle trial case in billing info page
msukkari 8929d05
add trial duration indicator to nav bar
msukkari a70c577
merge v3 changes into billing branch
msukkari 5a3eab2
check if domain starts or ends with dash
msukkari e369925
remove unused no org component
msukkari b0cbcf0
remove package lock file and fix prisma dep version
msukkari d463748
revert dep version updates
msukkari 4c0805c
fix yarn.lock
brendan-kellam 0f43c00
add auth and membership check to fetchSubscription
msukkari cf97955
properly handle invite redeem with no valid subscription case
msukkari ea4c29d
change back fetch subscription to not require org membership
msukkari 87efbf7
add back subscription check in invite redeem page
msukkari File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
2 changes: 2 additions & 0 deletions
2
packages/db/prisma/migrations/20250212185343_add_stripe_customer_id_to_org/migration.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "Org" ADD COLUMN "stripeCustomerId" TEXT; |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Add error handling for the async poll loop.
Converting to async/await is good, but consider adding error handling:
📝 Committable suggestion