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.

64 lines (62 loc) 1.89 kB
import { GetMerchantDetailsTax } from '../types/types'; type Props = { container: HTMLElement; onSuccess?: (_val?: any) => void; secret: string; amount: number; totalAmount: number; currency: string; reference: string; email?: string; rdtCode?: string; url?: string; closeModal: () => void; switchTab: (val: number) => void; callBackUrl: string; metadata: Record<string, unknown>; localCurrency: string; hidePaymentMethods: () => void; showPaymentMethods: () => void; disablePaymentMethods: (name: string) => void; }; declare class Ussd { private contents; private selectedCode?; private secret; private amount; private totalAmount; private currency; private email?; private pageLoader; private reference; private onSuccess; private warningScreen; private bankDetail; private viewUssdCode; private _currentStep; private container; private paymentService; private successScreen; private activeRef; private abortController; private _retry_count; private intervalPayment?; private rdtCode?; private url?; private callBackUrl; private metadata; private localCurrency; merchantDetails: GetMerchantDetailsTax; private hidePaymentMethods; private showPaymentMethods; disablePaymentMethods: (name: string) => void; constructor({ container, onSuccess, secret, amount, totalAmount, currency, email, reference, rdtCode, url, callBackUrl, metadata, localCurrency, hidePaymentMethods, showPaymentMethods, disablePaymentMethods, }: Props); get currentStep(): number; set currentStep(step: number); private onCodeSelect; private validate; private redirectTo; renderUssdContent(values?: GetMerchantDetailsTax): void; handleSelectChange(_e: Event): void; } export default Ussd;