@adyen/adyen-web
Version:
[](https://www.npmjs.com/package/@adyen/adyen-web)
41 lines (40 loc) • 1.2 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;
redirectIntroduction?: string;
timeToPay?: string;
instructions?: string | (() => h.JSX.Element);
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;