Skip to content

Claude/sovereign engineer protocol rr85l#5

Merged
davidlu1001 merged 2 commits intomainfrom
claude/sovereign-engineer-protocol-rr85l
Jan 9, 2026
Merged

Claude/sovereign engineer protocol rr85l#5
davidlu1001 merged 2 commits intomainfrom
claude/sovereign-engineer-protocol-rr85l

Conversation

@davidlu1001
Copy link
Contributor

No description provided.

claude and others added 2 commits January 9, 2026 04:17
This commit introduces a complete Stripe integration for RepliMap:

Architecture:
- Checkout sessions created on frontend, webhooks handled by backend
- Secure JWT token forwarding for backend authentication
- Polling-based license activation after successful payment

New files:
- src/config/pricing.ts: Stripe Price IDs with Test/Live mode support
- src/lib/stripe.ts: Stripe server client initialization
- src/app/api/checkout/route.ts: Create Stripe Checkout sessions
- src/app/api/billing-portal/route.ts: Customer billing portal access
- src/app/api/license/route.ts: License fetching with backend proxy
- src/hooks/use-license.ts: SWR hook for license state with polling
- src/components/upgrade-button.tsx: Plan upgrade button component
- src/components/manage-billing-button.tsx: Billing portal button

Updates:
- Dashboard now shows license status and upgrade options
- Toast notifications via Sonner for checkout feedback
- Checkout status overlay with polling for activation

The pricing config uses VERCEL_ENV to automatically switch between
Test and Live Stripe keys, preventing Preview deployments from
processing real payments.
@vercel
Copy link

vercel bot commented Jan 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
replimap-frontend Ready Ready Preview, Comment Jan 9, 2026 11:42am

@davidlu1001 davidlu1001 merged commit edc6ba4 into main Jan 9, 2026
3 checks passed
@davidlu1001 davidlu1001 deleted the claude/sovereign-engineer-protocol-rr85l branch January 10, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants