@blocklet/payment-react
Version:
Reusable react components for payment kit v2
23 lines (22 loc) • 962 B
TypeScript
import type { DonationSettings, TLineItemExpanded, TPaymentCurrency } from '@blocklet/payment-types';
type Props = {
items: TLineItemExpanded[];
currency: TPaymentCurrency;
trialInDays: number;
trialEnd?: number;
billingThreshold: number;
showStaking?: boolean;
onUpsell?: Function;
onDownsell?: Function;
onQuantityChange?: Function;
onChangeAmount?: Function;
onApplyCrossSell?: Function;
onCancelCrossSell?: Function;
checkoutSessionId?: string;
crossSellBehavior?: string;
donationSettings?: DonationSettings;
action?: string;
completed?: boolean;
};
export default function PaymentSummary({ items, currency, trialInDays, billingThreshold, onUpsell, onDownsell, onQuantityChange, onApplyCrossSell, onCancelCrossSell, onChangeAmount, checkoutSessionId, crossSellBehavior, showStaking, donationSettings, action, trialEnd, completed, ...rest }: Props): import("react").JSX.Element;
export {};