UNPKG

@monei-js/components

Version:

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

23 lines (22 loc) 648 B
export interface PaymentRequestProps { accountId?: string; sessionId?: string; paymentId?: string; amount?: number; currency?: string; language?: string; onError?: (error: any) => void; onProps?: (cb: (props: PaymentRequestProps) => void) => void; onBeforeOpen?: () => boolean; onSubmit: (data: { token?: string; error?: string; }) => void; onBeforeSubmit?: () => void; onLoad?: (isSupported: boolean) => void; style?: { height?: string | number; color?: 'default' | 'black' | 'white'; type?: 'buy' | 'plain' | 'donate'; }; }