UNPKG

@adyen/adyen-web

Version:

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

62 lines (61 loc) 2.66 kB
import { h } from 'preact'; import UIElement from '../UIElement'; import { DragonpayElementProps } from './types'; export declare class DragonpayElement extends UIElement<DragonpayElementProps> { static type: string; get isValid(): boolean; /** * Formats the component data output */ formatData(): { paymentMethod: { type: string; issuer: any; }; shopperEmail: any; }; protected formatProps(props: DragonpayElementProps): { issuers: any; type?: string; details?: any; loadingContext?: string; reference?: string; i18n?: import("../../language").default; environment?: string; session?: import("../../core/CheckoutSession/CheckoutSession").default; onChange?: (state: any, element: UIElement<any>) => void; onValid?: (state: any, element: UIElement<any>) => void; beforeSubmit?: (state: any, element: UIElement<any>, actions: any) => Promise<void>; onSubmit?: (state: any, element: UIElement<any>) => void; onComplete?: (state: any, element: UIElement<any>) => void; onActionHandled?: (rtnObj: import("../types").ActionHandledReturnObject) => void; onAdditionalDetails?: (state: any, element: UIElement<any>) => void; onError?: (error: any, element?: UIElement<any>) => void; onPaymentCompleted?: (result: any, element: UIElement<any>) => void; beforeRedirect?: (resolve: any, reject: any, redirectData: any, element: 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) => h.JSX.Element; createFromAction?: (action: import("../../types").PaymentAction, props: object) => UIElement<any>; clientKey?: string; paymentMethodType?: string; elementRef?: any; _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; }; render(): h.JSX.Element; } export default DragonpayElement;