@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.
35 lines (33 loc) • 990 B
TypeScript
import { GetMerchantDetailsTax } from '../../types/types';
type Props = {
container: HTMLDivElement;
email: string;
amount?: number;
metadata?: Record<string, unknown>;
currency: string;
localCurrency?: string;
merchantDetail: GetMerchantDetailsTax;
onAction: (_val: string) => void;
isMobile: boolean;
onClose: (notClosePayment: boolean) => void;
currentPaymentMethod: string;
};
export declare class MainHeader {
container: HTMLDivElement;
email: string;
amount: number;
metadata?: Record<string, unknown>;
currency: string;
localCurrency?: string;
merchantDetail: GetMerchantDetailsTax;
onAction: (_val: string) => void;
isMobile: boolean;
onClose: (notClosePayment: boolean) => void;
currentPaymentMethod: string;
constructor(props: Props);
attachListeners(): void;
renderComponent(): void;
renderPaymentOptions(container: HTMLDivElement): void;
render(): string;
}
export {};