@blocklet/payment-react
Version:
Reusable react components for payment kit v2
27 lines (26 loc) • 1.22 kB
TypeScript
import type { DonationSettings, TLineItemExpanded, TPaymentCurrency, TCheckoutSession, TPaymentMethodExpanded } 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;
checkoutSession?: TCheckoutSession;
onPromotionUpdate?: () => void;
paymentMethods?: TPaymentMethodExpanded[];
showFeatures?: boolean;
};
export default function PaymentSummary({ items, currency, trialInDays, billingThreshold, onUpsell, onDownsell, onQuantityChange, onApplyCrossSell, onCancelCrossSell, onChangeAmount, checkoutSessionId, crossSellBehavior, showStaking, donationSettings, action, trialEnd, completed, checkoutSession, paymentMethods, onPromotionUpdate, showFeatures, ...rest }: Props): import("react").JSX.Element;
export {};