()
| 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') |
no test coverage detected