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

    Interface StripeConfig

    The low-level Stripe HTTP transport (C048) — the fetch-based Stripe client the stripeConnector rides, exported so an app's Stripe-PLATFORM operations (hosted Checkout, subscriptions, saved-card management, Tax — the things the agnostic PaymentConnector deliberately doesn't model) ride the SAME client instead of a separate legacy one. This is intentionally Stripe-specific: agnostic payment FLOWS go through the connector, these platform ops through this transport — one Stripe roof, no accidental second path. Workers-native (fetch + x-www-form-urlencoded), zero deps.

    interface StripeConfig {
        secretKey: string;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
    }
    Index

    Properties

    Properties

    secretKey: string
    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    the HTTP transport — a mock in tests; defaults to the global fetch in prod.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>