/** * Payments Package * * Provides payment processing capabilities with Stripe integration. */ // Main Payment facade export * from './payment' export { default as Payment } from './payment' // The provider-neutral driver contract, and the Stripe and Adyen drivers // (stacksjs/stacks#665, #450). `paymentDriver()` is the one config.payment.driver // selects. export * from './driver' // Billable modules export * from './billable' // Stripe Connect (marketplaces) export * from './connect' // Stripe driver and SDK export * from './drivers/stripe' // Type-only re-export of the Stripe SDK namespace (`Stripe.Customer`, etc.). // `stripe` is an opt-in dependency, so this must not emit a runtime import — // use the lazy `stripe` client from `./drivers/stripe` for actual SDK calls. export type { default as Stripe } from 'stripe' // Idempotency-key helpers — passed to every Stripe create/update so // retries don't produce duplicate objects (stacksjs/stacks#1876 X-1). export { freshIdempotencyKey, stacksIdempotencyKey } from './idempotency' export { subscriptionGrantsAccess, subscriptionPeriod } from './subscription-state' // What a checkout.session.* webhook means: paid, processing, failed or expired. export * from './checkout-outcome' // Bank debits (SEPA Direct Debit, Bacs, ACH, BECS): methods per currency, // debit webhook outcomes and mandates. Pure; also `@stacksjs/payments/direct-debit`. export * from './direct-debit' // Card-present payments with Stripe Terminal: locations, readers, charges on a // reader, refunds to the card. Also `@stacksjs/payments/terminal`. export * from './terminal'