UNPKG

coinforbarter-react

Version:

CoinForBarter React Library - Integrate cryptocurrency payments for goods and services in your React App

14 lines (13 loc) 547 B
import { BodyType, CloseType, ConfigType } from "./types"; declare class Checkout { private readonly config; private iframeId; constructor(config: ConfigType); initialize(): Promise<void>; createIframe(body: BodyType): void; checkStatus(): void; handleResponse(status: string, txRef: string, transactionId: string): Promise<Window | null | undefined>; close(status: CloseType, data: Record<string, any>): void; } export declare const CoinForBarterCheckout: (config: ConfigType) => Checkout; export {};