@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.
39 lines (37 loc) • 1.13 kB
TypeScript
import { MainPageScreen } from './views/shared/main-page';
import { SharedErrorScreen } from './views/shared/shared-error-page';
import { PageLoader } from './views/shared/page-loader';
import { SpotflowProps } from './types';
declare class CheckoutForm {
modalContainer: HTMLDivElement;
mainLayout: HTMLDivElement;
encryption: string;
mainScreen: MainPageScreen;
private merchantConfigService;
mainError: SharedErrorScreen;
mainLoader: PageLoader;
private merchantPlanDetail;
merchantKey: string;
planId: string;
email: string;
amount: number;
rdtCode: string;
url: string;
phoneNumber: string;
code: string;
reference: string;
currency: string;
callBackUrl: string;
metadata: Record<string, unknown>;
localCurrency: string;
countryCode?: string;
constructor();
closePayment(): void;
getDeviceType(): "Mobile" | "Tablet" | "Desktop";
setup(config: Partial<SpotflowProps>): void;
private getAvailableChannels;
private getPlanDetails;
showErrorIcon(): void;
closeModal(): void;
}
export { CheckoutForm };