UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

56 lines (55 loc) 2.84 kB
import QRLoaderContainer from '../helpers/QRLoaderContainer'; declare class PromptPayElement extends QRLoaderContainer { static type: string; formatProps(props: any): { delay: number; countdownTime: number; type?: string; brandLogo?: string; buttonLabel?: string; qrCodeImage?: string; paymentData?: string; introduction: string; redirectIntroduction?: string; timeToPay?: string; instructions?: string | (() => import("preact").JSX.Element); copyBtn?: boolean; environment?: string; session?: import("../../core/CheckoutSession/CheckoutSession").default; onChange?: (state: any, element: import("../UIElement").UIElement<any>) => void; onValid?: (state: any, element: import("../UIElement").UIElement<any>) => void; beforeSubmit?: (state: any, element: import("../UIElement").UIElement<any>, actions: any) => Promise<void>; onSubmit?: (state: any, element: import("../UIElement").UIElement<any>) => void; onComplete?: (state: any, element: import("../UIElement").UIElement<any>) => void; onActionHandled?: (rtnObj: import("../types").ActionHandledReturnObject) => void; onAdditionalDetails?: (state: any, element: import("../UIElement").UIElement<any>) => void; onError?: (error: any, element?: import("../UIElement").UIElement<any>) => void; onPaymentCompleted?: (result: any, element: import("../UIElement").UIElement<any>) => void; beforeRedirect?: (resolve: any, reject: any, redirectData: any, element: import("../UIElement").UIElement<any>) => void; isInstantPayment?: boolean; name?: string; icon?: string; amount?: import("../../types").PaymentAmount; secondaryAmount?: import("../../types").PaymentAmountExtended; brand?: string; showPayButton?: boolean; setStatusAutomatically?: boolean; payButton?: (options: import("../types").PayButtonFunctionProps) => import("preact").JSX.Element; loadingContext?: string; createFromAction?: (action: import("../../types").PaymentAction, props: object) => import("../UIElement").UIElement<any>; clientKey?: string; paymentMethodType?: string; elementRef?: any; i18n?: import("../../language").default; _parentInstance?: import("../../core/core").default; order?: import("../../types").Order; modules?: { srPanel?: import("../../core/Errors/SRPanel").SRPanel; analytics?: import("../types").AnalyticsModule; resources?: import("../../core/Context/Resources").Resources; risk?: import("../../core/RiskModule").default; }; isDropin?: boolean; }; } export default PromptPayElement;