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.

40 lines (38 loc) 1.22 kB
import { PaymentAPIResponse } from '../../api'; import { PaymentResponseData } from '../../types/types'; type Props = { container: HTMLDivElement; onAction: (_val: number) => void; ref: string; token: string; rdtCode?: string; url?: string; onSuccess: (_val: any) => void; callBackUrl: string; setPaymentResponses: (data: PaymentResponseData, headers: Headers) => void; }; export declare class ConfirmationProgress { container: HTMLDivElement; onAction: (_val: number) => void; private onSuccess; private ref; private token; initialTime: number; abortController: AbortController; private timeLeft; private timer; timerId: null | number; private rdtCode?; private url?; private callBackUrl; setPaymentResponses: (data: PaymentResponseData, headers: Headers) => void; constructor(props: Props); attachListeners(): void; verifyCardPayment(token: string, initialInterval: number, onSuccess: (data: PaymentAPIResponse) => void, onError: (data: PaymentAPIResponse) => void): Promise<void>; private redirectTo; private startTimer; private stopTimer; renderComponent(): void; render(): string; } export {};