UNPKG

@adyen/adyen-web

Version:

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

45 lines (44 loc) 1.2 kB
import { PaymentAmount } from '../../types'; import Language from '../../language/Language'; import { UIElementProps } from '../types'; export interface DragonpayInputIssuerItem { id: string; name: string; icon?: string; } export interface DragonpayElementProps extends UIElementProps { type?: string; issuers?: DragonpayInputIssuerItem[]; /** @deprecated use issuers */ details?: any; loadingContext?: string; reference?: string; i18n?: Language; } export interface DragonpayInputData { issuer?: string; shopperEmail?: string; } export interface DragonpayInputProps { data: DragonpayInputData; issuer?: string; items?: DragonpayInputIssuerItem[]; type?: string; onChange: (state: any) => void; onSubmit?: (state: any, component: any) => void; showPayButton?: boolean; payButton: any; ref?: any; } export interface DragonpayVoucherResultProps { reference?: string; totalAmount?: PaymentAmount; expiresAt?: string; paymentMethodType?: string; instructionsUrl?: string; surcharge?: PaymentAmount; alternativeReference?: string; icon?: string; issuer?: string; ref?: any; }