@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.
44 lines (42 loc) • 1.08 kB
TypeScript
import { BankOption } from '../../types/types';
type Props = {
container: HTMLDivElement;
onAction: (_val: any, ref: string) => void;
selected: BankOption;
secret: string;
currency: string;
amount: number;
totalAmount: number;
email: string;
reference: string;
rdtCode?: string;
url?: string;
onError?: (_val: string) => void;
callBackUrl: string;
metadata: Record<string, unknown>;
localCurrency: string;
};
export declare class UssdViewCode {
container: HTMLElement;
selected: BankOption;
private secret;
onAction: (_val: BankOption, ref: string) => void;
private paymentService;
private currency;
private amount;
private ussd_detail?;
private reference;
private email?;
private activeRef;
private pageLoader;
private callBackUrl;
private metadata;
private localCurrency;
onError: (_val: string) => void;
constructor(props: Props);
private makePayment;
attachListener(): void;
renderComponent(): void;
render(): string;
}
export {};