UNPKG

@vbusatta/adonis-stripe

Version:

Provider for AdonisJS 6. Simplifies Stripe integration with webhooks and services.

15 lines (14 loc) 424 B
import StripeService from '../src/stripe.js'; export default class StripeProvider { app; constructor(app) { this.app = app; } register() { this.app.container.singleton('stripe', async () => { const config = this.app.config.get('stripe'); const logger = await this.app.container.make('logger'); return new StripeService(logger, config); }); } }