UNPKG

@adyen/adyen-web

Version:

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

67 lines (66 loc) 2.89 kB
import { h } from 'preact'; import UIElement from '../UIElement'; import { AchElementProps } from './types'; export declare class AchElement extends UIElement<AchElementProps> { static type: string; formatProps(props: AchElementProps): { holderNameRequired: boolean; storedPaymentMethodId?: string; hasHolderName?: boolean; enableStoreDetails: boolean; bankAccountNumber: string; showFormInstruction?: boolean; 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; type?: string; 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; loadingContext?: string; createFromAction?: (action: import("../../types").PaymentAction, props: object) => 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; }; /** * Formats the component data output */ formatData(): { storePaymentMethod: any; billingAddress: any; paymentMethod: any; }; updateStyles(stylesObj: any): this; setFocusOn(fieldName: any): this; get isValid(): boolean; get displayName(): string; get additionalInfo(): string; render(): h.JSX.Element; } export default AchElement;