PT

@core / billing

2.0.1 ▾
verificadoMIT
GitHub

Assinaturas Stripe: checkout, portal e webhooks idempotentes com Drizzle

Código9 arquivosContexto~742 tokensMCP stripeanálise aprovada

A árvore exata que será injetada, após o .genpmignore. Fixada em

src/lib/billing/index.tssomente leitura · c2aa5da
// @core/billing 2.0 — API pública. Configura los precios en plans.ts; rutas en adapters/hono.ts y adapters/next.ts.
export {
  activeSubscriptions,
  createCheckoutSession,
  createPortalSession,
  ensureCustomer,
  hasEntitlement,
  syncSubscription,
} from './billing.ts';
// Compatibilidad con 1.x: el webhook y su tabla viven ahora en @core/stripe.
export { handleStripeWebhook, stripeEvents, type WebhookResult, WebhookSignatureError } from '../stripe/index.ts';
export { ACTIVE_STATUSES, FEATURES_BY_PRICE } from './plans.ts';
export { billingCustomers, type Subscription, subscriptions } from './schema.ts';
export { getStripe, setStripe } from './stripe.ts';

Denunciar @core/billing

Entre com o GitHub para denunciar um pacote.