Function stripeAccountMode

Given a Stripe API key, infers whether the Stripe client was initialized in live mode or test mode.

  • Parameters

    • api_key: string

    Returns "live" | "test"