libs/paypal/driver/testing/src/drivers/paypal-driver.module.ts
import { CommonModule } from '@angular/common';
import {
NgModule,
ModuleWithProviders,
} from '@angular/core';
import { provideDaffPaypalExpressDriver } from '@daffodil/paypal/driver';
import { DaffTestingPaypalService } from './paypal.service';
@NgModule({
imports: [
CommonModule,
],
})
export class DaffPaypalTestingDriverModule {
static forRoot(): ModuleWithProviders<DaffPaypalTestingDriverModule> {
return {
ngModule: DaffPaypalTestingDriverModule,
providers: [
provideDaffPaypalExpressDriver(DaffTestingPaypalService),
],
};
}
}