Add stub de Stripe (sin cobro real)

This commit is contained in:
Carlos Narro
2026-05-30 19:58:29 +02:00
parent f2fb6d24c6
commit ac3b1cd294

View File

@@ -0,0 +1,12 @@
// Stub de Stripe: sin cuenta activa, no se hacen llamadas reales (ver spec, "Fuera de alcance").
// Reservado para cuando se conecte la pasarela; cualquier uso real debe lanzar para no fingir cobros.
export const STRIPE_ENABLED = false;
export async function createCustomer(_email: string): Promise<never> {
throw new Error('Stripe no está configurado (stub).');
}
export async function createCheckoutSession(_args: { tenantId: string; planSlug: string }): Promise<never> {
throw new Error('Stripe no está configurado (stub).');
}