UNPKG

@adyen/adyen-web

Version:

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

18 lines (17 loc) 695 B
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);