MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / initialize

Method initialize

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

Source from the content-addressed store, hash-verified

20 }
21
22 private async initialize() {
23 if (!this.stripe && process.env.STRIPE_SECRET_KEY) {
24 this.stripe = new Stripe(process.env.STRIPE_SECRET_KEY)
25 }
26 this.cacheManager = await UsageCacheManager.getInstance()
27 }
28
29 public getStripe() {
30 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