@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.
35 lines (33 loc) • 854 B
TypeScript
import { BankService } from '../../apis/payment.service';
import { BankOption } from '../../types/types';
type Props = {
container: HTMLElement;
merchantKey: string;
rdtCode?: string;
url?: string;
onAction?: (_val: BankOption) => void;
currency: string;
localCurrency?: string;
rate?: number;
amount: number;
totalAmount: number;
};
export declare class UssdBankDetailForm {
container: HTMLElement | Element;
bank_service: BankService;
private bank_list;
private onAction;
selectedBank: BankOption;
currency: string;
localCurrency?: string;
rate?: number;
amount: number;
totalAmount: number;
constructor(props: Props);
attachListerner(): void;
private validateForm;
private displayButtonText;
renderContent(): void;
render(): string;
}
export {};