buildmymcpserver/apps/web/package.json
Marco Sadjadi cf423de3d5
All checks were successful
Deploy to Production / deploy (push) Successful in 1m22s
@
feat(billing): in-app embedded Stripe checkout + webhook hardening

Checkout previously used hosted ui_mode → window.location to checkout.stripe.com,
which pops out of the installed PWA into the system browser. Switch to embedded:

- API: ui_mode embedded_page (stripe-node v22 / API 2025-10 renamed the enum),
  return_url instead of success/cancel_url, returns client_secret.
- web: @stripe/react-stripe-js EmbeddedCheckout mounted in an in-app modal;
  NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY baked at build (Dockerfile arg + compose arg).
- .env.production.example: full Stripe section (was missing) + admin-email
  placeholder (INF-001).

Also bundled (same files): BILL-002 invoice.paid resets quota only on
subscription_cycle; BILL-003 webhook dedup rolled back on handler failure;
BILL-001 change-plan writes plan locally; BILL-004 webhook cross-checks
sub.customer before trusting metadata.orgId; INF-003 API routed off the raw
docker.sock through a locked-down tecnativa/docker-socket-proxy (CONTAINERS+POST).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@
2026-05-29 20:56:40 +02:00

44 lines
1018 B
JSON

{
"name": "@bmm/web",
"version": "0.1.0",
"type": "module",
"private": true,
"scripts": {
"dev": "next dev --port 3001",
"build": "next build",
"start": "next start --port 3001",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@bmm/types": "workspace:*",
"@stripe/react-stripe-js": "^6.4.0",
"@stripe/stripe-js": "^9.7.0",
"clsx": "2.1.1",
"framer-motion": "11.18.2",
"geist": "1.3.1",
"lucide-react": "0.469.0",
"next": "15.1.3",
"react": "19.0.0",
"react-dom": "19.0.0",
"tailwind-merge": "2.5.5",
"three": "0.171.0",
"zod": "3.25.76"
},
"browserslist": [
"chrome >= 111",
"edge >= 111",
"firefox >= 111",
"safari >= 16.4"
],
"devDependencies": {
"@tailwindcss/postcss": "4.0.0-beta.7",
"@types/node": "22.10.2",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.2",
"@types/three": "0.171.0",
"postcss": "8.4.49",
"tailwindcss": "4.0.0-beta.7",
"typescript": "5.7.2"
}
}