feat(monetization): add DodoPayments webhook, subscription helpers, pricing checkout links, and Pro tier feature gates - #129
Conversation
…ricing checkout links, and Pro tier feature gates
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughAdds DodoPayments webhook synchronization, subscription-aware resource and AI quotas, monthly usage tracking, updated pricing checkout links, and documentation for the new subscription data and API responses. ChangesSubscription billing and quota enforcement
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested labels: Sequence Diagram(s)sequenceDiagram
participant DodoPayments
participant WebhookRoute
participant Firestore
DodoPayments->>WebhookRoute: Send signed subscription event
WebhookRoute->>WebhookRoute: Verify and parse event
WebhookRoute->>Firestore: Update user subscription
WebhookRoute->>Firestore: Record subscription event
Firestore-->>WebhookRoute: Confirm writes
WebhookRoute-->>DodoPayments: Return JSON response
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
app/api/_utils/subscription.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. app/api/ai/ask/route.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox. app/api/resources/pdf/route.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Documentation