MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / initialize

Method initialize

packages/server/src/StripeManager.ts:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 }
19
20 private async initialize() {
21 if (!this.stripe && process.env.STRIPE_SECRET_KEY) {
22 this.stripe = new Stripe(process.env.STRIPE_SECRET_KEY)
23 }
24 this.cacheManager = await UsageCacheManager.getInstance()
25 }
26
27 public getStripe() {
28 if (!this.stripe) throw new Error('Stripe is not initialized')

Callers 1

getInstanceMethod · 0.45

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected