@monei-js/components
Version:
MONEI UI Components enable you to collect sensitive payment information using customizable UI components.
29 lines (28 loc) • 878 B
TypeScript
import { BillingDetails, Customer, PaymentMethod, PaymentResult } from '../types';
declare type Style = {
width: string;
height: string;
};
export interface ConfirmPaymentParams {
paymentId: string;
paymentToken?: string;
generatePaymentToken?: boolean;
fullscreen?: boolean;
language?: string;
paymentMethod?: PaymentMethod;
allowedPaymentMethods?: string[];
customDomain?: string;
customer?: Customer;
style?: Style;
billingDetails?: BillingDetails;
shippingDetails?: BillingDetails;
}
export interface PaymentModalProps extends ConfirmPaymentParams {
isOpen: boolean;
onError?: (error: any) => void;
onProps?: (cb: (props: PaymentModalProps) => void) => Promise<void>;
onResult: (result: PaymentResult) => void;
onLoad?: () => void;
onOpen?: () => void;
}
export {};