feat(F-194): completed feature

This commit is contained in:
chattie
2026-08-22 22:29:26 +02:00
parent ca12f46bff
commit b85670cb51
15 changed files with 73 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
import { useMemo, useState } from 'react';
import { formatPrice } from '@/lib/money';
import type { PaymentAllocation, PaymentMethod } from '@/types/checkout';
import { generateIdempotencyKey } from '@/lib/idempotency';
interface PaymentModalProps {
method: PaymentMethod;
@@ -48,7 +49,7 @@ export default function PaymentModal({
return;
}
onAdd({
id: crypto.randomUUID(),
id: generateIdempotencyKey(),
methodCode: method.code,
methodLabel: method.label,
kind: method.kind,