@monei-js/components
Version:
MONEI UI Components enable you to collect sensitive payment information using customizable UI components.
46 lines (45 loc) • 1.2 kB
TypeScript
import { CSSObject } from '../../types/css';
export interface CofidisProps {
paymentId?: string;
language?: string;
hint?: boolean;
onError?: (error: any) => void;
onProps?: (cb: (props: CofidisProps) => void) => Promise<void>;
onLoad?: (isSupported: boolean) => void;
onBeforeOpen?: () => boolean;
onOpen?: () => void;
onSubmit: (data: {
token?: string;
error?: string;
redirectUrl?: string;
}) => void;
fullscreen?: boolean;
style?: {
height?: number;
};
}
export interface CofidisModalProps extends CofidisProps {
isOpen?: boolean;
amount: number;
currency: string;
accountId: string;
onError: (error: any) => void;
}
export interface CofidisWidgetProps {
amount?: number;
amountInt?: number;
accountId: string;
language?: string;
showLogo?: boolean;
style?: {
base?: CSSObject;
link?: CSSObject;
amount?: CSSObject;
label?: CSSObject;
terms?: CSSObject;
logo?: CSSObject;
content?: CSSObject;
};
onError?: (error: any) => void;
onLoad?: () => void;
}