--- issue: "035" title: "Dispute payment card 'Verify' button always 404s — getPaymentStatus calls non-existent endpoint" severity: major domain: payment labels: [frontend, bug] status: open created: 2026-05-29 source: Doc vs Code Audit 2026-05-29 --- # 🟠 Dispute payment card 'Verify' button always 404s — getPaymentStatus calls non-existent endpoint **Severity:** major **Domain:** payment **Labels:** frontend, bug ## Description `frontend/src/sections/dispute/components/payment-details-card.tsx` (line ~101) calls `getPaymentStatus()` which builds URL as `GET /payment/:id/status`. No `/status` sub-route exists on any payment route in the backend. The 'Verify' button in the dispute panel is permanently broken in production. ## Current Behavior Clicking 'Verify' on the dispute payment card → `GET /payment/{id}/status` → 404. ## Expected Behavior Either: 1. Implement `GET /api/payment/:id/status` on the backend, or 2. Update the component to use the existing `GET /api/payment/:id` endpoint for payment detail fetching ## Affected Files - `frontend/src/sections/dispute/components/payment-details-card.tsx` — line ~101 - `frontend/src/actions/payment.ts` — `getPaymentStatus` function ## References - [Doc vs Code Audit Report](../09%20-%20Audits/Doc%20vs%20Code%20Audit%20Report%20-%202026-05-29.md) — Finding C13