diff --git a/src/components/collections/payment-plans-panel.tsx b/src/components/collections/payment-plans-panel.tsx index de59105..f6f2feb 100644 --- a/src/components/collections/payment-plans-panel.tsx +++ b/src/components/collections/payment-plans-panel.tsx @@ -334,6 +334,7 @@ export function PaymentPlansPanel({ {ins.map((i) => { const overdue = !i.paid && parseDateOnly(i.due_date)! < new Date(new Date().toDateString()); + const req = i.payment_request_id ? requests[i.payment_request_id] : undefined; return (
paid {formatDate(i.paid_on)} )} + {!i.paid && req && ( + + {req.status} + + )}
Due {formatDate(i.due_date)} @@ -367,6 +373,48 @@ export function PaymentPlansPanel({ {formatCurrency(i.amount)}
)} + {!i.paid && !req && ( + + )} + {!i.paid && req && ( + <> + {req.stripe_checkout_url && ( + + )} + + + )} );