Scope subscription checkout to a valid active organization - #1107
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe subscription route now validates the authenticated organization membership before checkout creation. It rejects ambiguous organization selection and stale active-organization memberships with HTTP 409 responses. Tests cover valid checkout metadata and rejected checkout flows. ChangesOrganization-scoped subscription checkout
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The change scopes subscription checkout to the authenticated active organization and adds explicit handling for ambiguous or stale organization sessions; no actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Supersedes #1095 while preserving @basriakkaya's original commit and attribution.
What changed
organization_selection_requiredcode for client recoveryValidation
git diff --checkpassedNo visual QA is required because this is an API-only billing and authorization change. Manual preview verification will cover active-org and stale-org checkout behavior.
Summary by CodeRabbit
New Features
Bug Fixes