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; }
1
import { BrowserModule } from '@angular/platform-browser';
2
import { NgModule } from '@angular/core';
3
4
// Import your library
5
import { NgxStripeModule } from 'ngx-stripe';
6
7
@NgModule({
8
declarations: [
9
AppComponent
10
],
11
imports: [
12
BrowserModule,
13
NgxStripeModule.forRoot('***your-stripe-publishable-key***'),
14
LibraryModule
15
],
16
providers: [],
17
bootstrap: [AppComponent]
18
})
19
export class AppModule { }
Copied!
Last modified 1yr ago
Copy link