-
Notifications
You must be signed in to change notification settings - Fork 11.5k
feat: add source: 'onboarding' metadata to subscriptions from onboarding v3 #26619
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
sean-brydon
merged 3 commits into
main
from
devin/onboarding-subscription-source-metadata-1767966491
Jan 11, 2026
Merged
feat: add source: 'onboarding' metadata to subscriptions from onboarding v3 #26619
sean-brydon
merged 3 commits into
main
from
devin/onboarding-subscription-source-metadata-1767966491
Jan 11, 2026
+10
−6
Conversation
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
…ing v3 When a user signs up to a team/org from onboarding v3, the subscription now includes source: 'onboarding' in its metadata. This helps track which subscriptions originated from the onboarding flow. Changes: - Add source: 'onboarding' to subscription_data.metadata in team checkout when isOnboarding is true - Add source: 'onboarding' to subscription metadata for organization onboarding flow Co-Authored-By: sean@cal.com <Sean@brydon.io>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
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.
No issues found across 2 files
joeauyeung
approved these changes
Jan 9, 2026
Ryukemeister
approved these changes
Jan 9, 2026
Anshumancanrock
pushed a commit
to Anshumancanrock/cal.com
that referenced
this pull request
Jan 12, 2026
…ing v3 (calcom#26619) When a user signs up to a team/org from onboarding v3, the subscription now includes source: 'onboarding' in its metadata. This helps track which subscriptions originated from the onboarding flow. Changes: - Add source: 'onboarding' to subscription_data.metadata in team checkout when isOnboarding is true - Add source: 'onboarding' to subscription metadata for organization onboarding flow Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
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.
What does this PR do?
Adds
source: "onboarding"metadata to Stripe subscriptions when users sign up to a team or organization from the onboarding v3 flow. This helps track which subscriptions originated from the onboarding flow for analytics and debugging purposes.Changes:
source: "onboarding"tosubscription_data.metadatawhenisOnboardingis truesource: "onboarding"to subscription metadata for all organization onboarding subscriptionsMandatory Tasks (DO NOT REMOVE)
How should this be tested?
For Teams (onboarding v3):
/onboarding/teams/details)metadata.source = "onboarding"For Organizations (onboarding v3):
metadata.source = "onboarding"Environment variables needed:
STRIPE_TEAM_MONTHLY_PRICE_IDSTRIPE_ORG_MONTHLY_PRICE_IDHuman Review Checklist
isOnboardingflag correctly identifies onboarding v3 team signups vs other team creation pathsOrganizationPaymentService.createSubscriptionis only called from onboarding flows (otherwise non-onboarding org subscriptions would also get this metadata){}whenisOnboardingis false for teams is acceptable behaviorLink to Devin run: https://app.devin.ai/sessions/eb76f0a24ea447a983f1c90a6227234c
Requested by: @sean-brydon