Billing & subscription management
14-day trial → Stripe checkout → customer portal. Faktúry, payment method, cancellation, AI credit tracking.
Trial
Po signup-e dostaneš 14-day trial s 500 AI credits + 3 seats. Žiadna kreditka.
Upgrade
INLINECODE_0 → vyber plán → Stripe Checkout. Po platbe webhook updatne tenant_subscriptions.
3 plany:
- Starter €29 — 3 seats, 1 000 AI, 1 mailbox
- Growth €79 — 10 seats, 5 000 AI, 5 mailboxov (najpopulárnejší)
- Pro €199 — 25 seats, 20 000 AI, neobmedzené
Customer portal
Klikni Customer portal v billing page — Stripe self-service:
- Zmeniť kartu
- Stiahnuť faktúry (PDF)
- Zmeniť billing adresu
- Cancel subscription (aktívne do konca obdobia)
AI credit tracking
V tenant_subscriptions:
ai_credits_monthly— limitai_credits_used— counter (atomic increment)ai_credits_reset_at— reset trigger (cez invoice.paid webhook)
Pri 80% využití → notification (medium severity).
Pri 100% → AI sekcie vrátia 429 s upgrade CTA + notification (high).
Payment failed
Stripe invoice.payment_failed webhook → notification fanout admin role s high severity + audit log. Update kartu cez customer portal.
Cancellation
V customer portal Cancel subscription — cancel_at_period_end=true. Workspace funguje do konca obdobia, potom status=canceled.
EU VAT
Automatic Tax v Stripe — DPH sa pridá na základe billing adresy. Pre slovenské firmy 20%, pre EÚ B2B reverse-charge cez VIES.
Pripravený vyskúšať Kovrin Workspace?