@monei-js/components
Version:
MONEI UI Components enable you to collect sensitive payment information using customizable UI components.
31 lines (30 loc) • 854 B
TypeScript
import { TransactionType } from '../types';
export interface BizumProps {
accountId?: string;
sessionId?: string;
paymentId?: string;
phoneNumber?: string;
amount?: number;
currency?: string;
transactionType?: TransactionType;
fullscreen?: boolean;
language?: string;
onError?: (error: any) => void;
onProps?: (cb: (props: BizumProps) => void) => Promise<void>;
onSubmit: (data: {
token?: string;
error?: string;
}) => void;
onLoad?: (isSupported: boolean) => void;
onBeforeOpen?: () => boolean;
onOpen?: () => void;
style?: {
height?: string | number;
type?: 'pay' | 'plain';
};
}
export interface BizumModalProps extends BizumProps {
isOpen?: boolean;
isHidden?: boolean;
onError?: (error: any) => void;
}