/** * License purchase completion page. * * Route: /checkout?tier=fullerene&success=true — the return URL the payment * provider redirects to after a completed purchase. Purchases start directly * from the pricing card (PricingSection posts to /license-checkout and hands * off to the provider's hosted checkout), so anything landing here without * success=true is bounced back to pricing. */ import { IconCheck as Check } from '@tabler/icons-react'; import { motion } from 'framer-motion'; import { Link, Navigate, useSearchParams } from 'react-router'; import { SEO } from '@/components/SEO'; import { Button } from '@/components/ui/button'; const TIER_NAMES: Record = { fullerene: 'Fullerene', }; export default function Checkout() { const [searchParams] = useSearchParams(); const tierName = TIER_NAMES[searchParams.get('tier') ?? ''] ?? TIER_NAMES.fullerene; if (searchParams.get('success') !== 'true') { return ; } return (

Welcome to {tierName}!

Your license key will be delivered to your email. Activate it with:

          vibecarbon activate {''}
        
); }