UNPKG

@adyen/adyen-web

Version:

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

30 lines (29 loc) 862 B
import { h } from 'preact'; import UIElement from '../UIElement'; import { DonationElementProps } from './types'; /** * DonationElement */ declare class DonationElement extends UIElement<DonationElementProps> { static type: string; constructor(props: any); static defaultProps: { onCancel: () => void; onDonate: () => void; }; protected formatProps(props: DonationElementProps): DonationElementProps; isNewDonation(prop: DonationElementProps): boolean; /** * Returns the component payment data ready to submit to the Checkout API */ get data(): any; /** * Returns whether the component state is valid or not */ get isValid(): any; setState(newState: any): void; donate(): void; handleRef: (ref: any) => void; render(): h.JSX.Element; } export default DonationElement;