Setup Application
Import the NgxStripeModule
into your application
The module takes the same parameters as the global Stripe object. The APIKey
and the optional Options
to use Stripe connect.
apiKey: string
options?: { stripeAccount?: string; }
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// Import your library
import { NgxStripeModule } from 'ngx-stripe';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxStripeModule.forRoot('***your-stripe-publishable-key***'),
LibraryModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Last updated
Was this helpful?