UNPKG

@monei-js/components

Version:

MONEI UI Components enable you to collect sensitive payment information using customizable UI components.

24 lines (23 loc) 635 B
export interface Click2PayProps { paymentId: string; amount: number; currency: string; fullscreen?: boolean; language?: string; onError?: (error: any) => void; onProps?: (cb: (props: Click2PayProps) => void) => Promise<void>; onSubmit: (data: { token?: string; error?: string; }) => void; onLoad?: (isSupported: boolean) => void; onOpen?: () => void; style?: { height?: number; type?: 'pay' | 'plain'; }; } export interface Click2PayModalProps extends Click2PayProps { isOpen?: boolean; onError: (error: any) => void; }