@blocklet/payment-react
Version:
Reusable react components for payment kit v2
20 lines (19 loc) • 624 B
TypeScript
export interface AppliedPromoCode {
id: string;
code: string;
discount_amount?: string;
}
interface PromotionCodeProps {
checkoutSessionId: string;
initialAppliedCodes?: AppliedPromoCode[];
disabled?: boolean;
className?: string;
placeholder?: string;
currencyId: string;
onUpdate?: (data: {
appliedCodes: AppliedPromoCode[];
discountAmount: string;
}) => void;
}
export default function PromotionCode({ checkoutSessionId, initialAppliedCodes, disabled, className, placeholder, onUpdate, currencyId, }: PromotionCodeProps): import("react").JSX.Element;
export {};