How to use the nestjs-stripe.StripeModule.forRoot function in nestjs-stripe

To help you get started, we’ve selected a few nestjs-stripe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github juicycleff / ultimate-backend / apps / service-payment / src / app.module.ts View on Github external
GraphqlDistributedModule.forRoot({
      autoSchemaFile: 'graphs/plan.gql',
      introspection: true,
      buildSchemaOptions: {
        orphanedTypes: [Plan],
      },
      playground: {
        workspaceName: 'GRAPHQL SERVICE PLAN',
        settings: {
          'editor.theme': 'light',
        },
      },
      context: ({ req, res }) => buildContext({ req, res }),
    }),
    CoreModule,
    StripeModule.forRoot({
      apiKey: AppConfig.payment?.stripe?.secretKey,
    }),
    TerminusModule.forRootAsync({
      imports: [AppModule],
      useClass: HealthOptionsService,
    }),
    BillingModule,
    PlanModule,
    CardModule,
    InvoiceModule,
    SubscriptionModule,
  ],
  controllers: [AppController],
  providers: [
    AppService,
    MongoHealthIndicator,

nestjs-stripe

Provides an injectable Stripe client to nestjs modules

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis