@suluk/billing - v0.2.0
    Preparing search index...

    Function createPaymentIntent

    • Create a PaymentIntent for an on-site one-time top-up (saves the card; the webhook credits it). Returns the client secret.

      Parameters

      • cfg: StripeConfig
      • customerId: string
      • amountCents: number
      • meta: { userId: string; credits: number; taxCalculation?: string | null }

      Returns Promise<string>