UNPKG

@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.

45 lines (43 loc) 1.14 kB
import { CustomerDetails } from '../../types'; 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; customer: CustomerDetails; 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 customer; 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 {};