UNPKG

ynkap-payment

Version:

Module de paiement Y-Nkap pour Angular - Intégration simple des paiements mobiles (Orange Money, MTN Mobile Money)

34 lines (33 loc) 1.78 kB
import { EventEmitter, ChangeDetectorRef, NgZone } from '@angular/core'; import { YnkapError } from '../error-handling/models/error.model'; import { LogoService } from '../shared/logo.service'; import { ModalStabilityService } from '../shared/modal-stability.service'; import * as i0 from "@angular/core"; export declare class YnkapPayButtonComponent { private logoService; private cdr; private ngZone; private modalStability; amount: number; currency: string; description: string; merchantReference: string; primaryColor?: string; theme: 'light' | 'dark'; paymentSuccess: EventEmitter<any>; paymentError: EventEmitter<YnkapError>; paymentCancel: EventEmitter<void>; isModalOpen: boolean; constructor(logoService: LogoService, cdr: ChangeDetectorRef, ngZone: NgZone, modalStability: ModalStabilityService); openModal(): void; closeModal(): void; onPaymentSuccess(event: any): void; onPaymentError(event: YnkapError): void; onPaymentCancel(): void; /** * Get Y-Nkap logo URL */ getYnkapLogoUrl(): string; static ɵfac: i0.ɵɵFactoryDeclaration<YnkapPayButtonComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<YnkapPayButtonComponent, "ynkap-pay-button", never, { "amount": { "alias": "amount"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "description": { "alias": "description"; "required": false; }; "merchantReference": { "alias": "merchantReference"; "required": false; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "paymentSuccess": "paymentSuccess"; "paymentError": "paymentError"; "paymentCancel": "paymentCancel"; }, never, never, false, never>; }