Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
]
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 {}