UNPKG

@monei-js/components

Version:

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

28 lines (27 loc) 906 B
import { TransactionType } from '../types'; export interface PayPalProps { accountId?: string; sessionId?: string; paymentId?: string; amount?: number; currency?: string; language?: string; transactionType?: TransactionType; cspNonce?: string; onError?: (error: any) => void; onProps?: (cb: (props: PayPalProps) => void) => void; onSubmit: (data: { token?: string; error?: string; }) => void; onBeforeOpen?: () => boolean; onLoad?: (isSupported: boolean) => void; style?: { height?: number | string; color?: 'gold' | 'blue' | 'silver' | 'white' | 'black'; layout?: 'horizontal' | 'vertical'; size?: 'small' | 'medium' | 'large' | 'responsive'; shape?: 'pill' | 'rect'; label?: 'checkout' | 'credit' | 'pay' | 'buynow' | 'paypal' | 'installment'; }; }