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.

65 lines (63 loc) 1.98 kB
import { GetMerchantDetailsTax } from '../types/types'; type Props = { container: HTMLElement; token: string; email: string; amount: number; totalAmount: number; switchTab: (val: number) => void; onSuccess?: (_val?: any) => void; currency: string; rdtCode?: string; url?: string; reference: string; callBackUrl: string; metadata: Record<string, unknown>; localCurrency: string; hidePaymentMethods: () => void; showPaymentMethods: () => void; onClose: (notClosePayment: boolean) => void; restartTransactionProcess: () => void; retryingPayment: boolean; }; declare class Eft { private contents; private eftAuthenticate; private successScreen; private pageLoader; private warningScreen; private transactionIssuesScreen; private container; private email; private token; private amount; private totalAmount; private currency; private _currentStep; private rdtCode?; private url?; private reference; private callBackUrl; private metadata; private localCurrency; private hidePaymentMethods; private showPaymentMethods; private merchantPlanDetail; private restartTransactionProcess; private retryingPayment; isMaxRetriesReached: boolean; isMobile: boolean; private paymentResponse; private paymentResponseHeaders; constructor({ amount, totalAmount, container, email, token, currency, rdtCode, url, reference, callBackUrl, metadata, localCurrency, hidePaymentMethods, showPaymentMethods, restartTransactionProcess, retryingPayment, }: Props); get currentStep(): number; set currentStep(step: number); showLoader(): void; setPaymentError(text: string): void; goBackToMerchant(): void; createEftPayment(): Promise<void>; private redirectToOzow; verifyPaymentProcess(): Promise<void>; renderEftContent(values?: GetMerchantDetailsTax): void; } export default Eft;