MCPcopy
hub / github.com/CapSoftware/Cap / key

Function key

packages/utils/src/lib/stripe/stripe.ts:4–4  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import Stripe from "stripe";
3
4const key = () => serverEnv().STRIPE_SECRET_KEY ?? "";
5export const STRIPE_AVAILABLE = () => key() !== "";
6export const stripe = () =>
7 new Stripe(key(), {

Callers 3

STRIPE_AVAILABLEFunction · 0.85
stripeFunction · 0.85
createFakeWindowBoundsFunction · 0.85

Calls 1

serverEnvFunction · 0.90

Tested by

no test coverage detected