ZH
测试版翻译

@core / billing

2.0.1 ▾
已验证MIT
GitHub

Stripe 订阅:结账、客户门户和幂等 Webhook(Drizzle)

代码9 个文件上下文约 742 个 tokenMCP stripe扫描通过

应用 .genpmignore 后将被注入的确切目录树。固定于

src/lib/billing/index.ts只读 · 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';

举报 @core/billing

使用 GitHub 登录后才能举报包。