UNPKG

ngx-pesapal

Version:

Angular schematics lib for abstracting Pesapal APIs

22 lines (21 loc) 1.33 kB
import { ModuleWithProviders } from '@angular/core'; import * as i0 from "@angular/core"; import * as i1 from "./directives/pesapal-pay.directive"; import * as i2 from "@angular/common/http"; export declare class NgxPesapal { constructor(); /** * Static method to initialize and configure the PesapalModule with essential configuration values. * It is used to set up necessary configurations for the Pesapal module, including consumer key, consumer secret, and IPN (Instant Payment Notification) ID. * * @param consumer_key - The consumer key used for Pesapal API authentication. * @param consumer_secret - The consumer secret associated with the consumer key for authentication. * @param ipn_id - The Instant Payment Notification (IPN) ID used for Pesapal configuration. * @returns A ModuleWithProviders object for initializing the PesapalModule with the provided configurations. * @publicApi */ static forRoot(consumer_key: string, consumer_secret: string, ipn_id: string): ModuleWithProviders<NgxPesapal>; static ɵfac: i0.ɵɵFactoryDeclaration<NgxPesapal, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NgxPesapal, [typeof i1.NgxPesapalDirective], [typeof i2.HttpClientModule], [typeof i1.NgxPesapalDirective]>; static ɵinj: i0.ɵɵInjectorDeclaration<NgxPesapal>; }