@adyen/adyen-web
Version:
[](https://www.npmjs.com/package/@adyen/adyen-web)
18 lines (17 loc) • 695 B
TypeScript
import { DonationAmounts, DonationComponentProps, DonationPayload } from './components/types';
import { UIElementProps } from '../types';
export interface NewDonationComponentProps {
amounts: DonationAmounts;
bannerUrl: string;
logoUrl: string;
nonprofitDescription: string;
nonprofitName: string;
nonprofitUrl: string;
termsAndConditionsUrl: string;
causeName?: string;
showCancelButton?: boolean;
onDonate: (payload: DonationPayload) => void;
onCancel?: (payload: DonationPayload) => void;
onChange?: (payload: DonationPayload) => void;
}
export type DonationElementProps = UIElementProps & (NewDonationComponentProps | DonationComponentProps);