@adyen/adyen-web
Version:

39 lines (38 loc) • 1.12 kB
TypeScript
import { h } from 'preact';
import UIElement from '../UIElement';
import { UIElementProps } from '../types';
export interface QRLoaderContainerProps extends UIElementProps {
/**
* Number of miliseconds that the component will wait in between status calls
*/
delay?: number;
/**
* Number of minutes that the component should keep on loading
*/
countdownTime?: number;
type?: string;
brandLogo?: string;
buttonLabel?: string;
qrCodeImage?: string;
paymentData?: string;
introduction: string;
instructions?: string;
copyBtn?: boolean;
}
declare class QRLoaderContainer<T extends QRLoaderContainerProps = QRLoaderContainerProps> extends UIElement<T> {
protected static defaultProps: {
qrCodeImage: string;
amount: any;
paymentData: any;
onError: () => void;
onComplete: () => void;
onActionHandled: () => void;
};
formatData(): {
paymentMethod: any;
};
get isValid(): boolean;
renderQRCode(): h.JSX.Element;
render(): h.JSX.Element;
}
export default QRLoaderContainer;