1
Instalar
- pnpm
- npm
- yarn
- bun
2
Configurar
.env.local
lib/commet.ts
3
Crear Cliente y Suscribir
customers.create es idempotente — si ya existe un cliente con el mismo id, retorna el registro existente.app/actions/billing.ts
checkoutUrl es null no hace falta pago y la suscripción ya está activa.4
Verificar Acceso
app/actions/billing.ts
app/actions/features.ts
5
Trackear Uso
app/actions/usage.ts
6
Portal del Cliente
app/api/commet/portal/route.ts