--- issue: 036 title: "cancelPayment action sends DELETE /payment/:id but no DELETE route exists on any payment endpoint" severity: major domain: Payment labels: [bug, frontend, major, broken-feature] status: open created: 2026-05-29 source: Doc vs Code Audit 2026-05-29 --- # 🟠 cancelPayment action sends DELETE /payment/:id but no DELETE route exists on any payment endpoint **Severity:** major **Domain:** Payment **Labels:** bug, frontend, major, broken-feature ## Description cancelPayment() in src/actions/payment.ts sends DELETE /payment/:id. Backend has no DELETE method on any payment route. The web3 context version is a local state reset, but the action-layer version makes a real HTTP DELETE that will 404. ## Current Behavior cancelPayment() via the action layer returns 404. ## Expected Behavior Either implement a DELETE /payment/:id backend route for cancellation, or remove/replace the action-layer cancelPayment with correct API call. ## Affected Files - `frontend/src/actions/payment.ts` ## References - [Doc vs Code Audit Report](../09%20-%20Audits/Doc%20vs%20Code%20Audit%20Report%20-%202026-05-29.md)