How to use the ngx-stripe.NgxStripeModule.forRoot function in ngx-stripe

To help you get started, we’ve selected a few ngx-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 scottopolis / wpIonic / src / app / app.module.ts View on Github external
import { NgxStripeModule } from 'ngx-stripe';
import { Configure } from '../providers/configure/configure';

@NgModule({
  declarations: [
    MyApp,
    TabsPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot(),
    HttpClientModule,
    // replace key with your Stripe publishable key
    NgxStripeModule.forRoot('pk_test_07YFA0DDYu5miC2ijbhzWOXw')
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    TabsPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    LoginProvider,
    CameraProvider,
    PostsProvider,
    WooProvider,
    Configure
  ]
github richnologies / ngx-stripe / projects / ngx-stripe-tester / src / app / app.module.ts View on Github external
import { NgxStripeModule } from 'ngx-stripe';

import { environment } from '../environments/environment';

import { SharedModule } from './shared/shared.module';
import { CoreModule } from './core/core.module';

import { AppComponent } from './app.component';
import { ROUTES } from './app.routing';

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    RouterModule.forRoot(ROUTES),
    NgxStripeModule.forRoot('pk_test_nDR7IWEIGLp4a1SBtqKH5eyg'),
    NoopAnimationsModule,
    ServiceWorkerModule.register('ngsw-worker.js', {
      enabled: environment.production
    }),
    SharedModule,
    CoreModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}

ngx-stripe

Collect Payments with Stripe: The Angular Way

MIT
Latest version published 14 days ago

Package Health Score

76 / 100
Full package analysis

Popular ngx-stripe functions