@spot-flow/checkout-inline-js
Version:
This project is an inline library that enables users to make payments seamlessly. It integrates smoothly into your application, providing a streamlined checkout experience.
21 lines (20 loc) • 583 B
TypeScript
type Props = {
container: HTMLDivElement;
onComplete?: () => void;
onClose: (notClosePayment: boolean) => void;
onAction: (_evt: Event) => (_val: string) => void;
otpMessage: string;
};
export declare class MobileMoneyValidationForm {
container: HTMLElement | Element;
private momoOtp;
private onAction;
private onClose;
private otpMessage;
constructor(props: Props);
attachListener(): void;
handleOtpInput(event: InputEvent, button: HTMLButtonElement | null): void;
renderComponent(): void;
render(): string;
}
export {};