DELETE /isn/cancel-order/:paymentId in attik-backend/src/routes/isnPayments.ts calls cancelISNOrder, updates the payment to canceled, and clears the PAC payment so the client can choose another method. That route is currently used with company context (res.locals.company via getPaymentSettings). The portal needs a way for the client to trigger this (or an equivalent client-scoped endpoint) and a clear UI so they can cancel or change payment before completing the ISN form.Backend
attik-backend/src/routes/isnPayments.ts (DELETE /cancel-order/:paymentId; expects inspectionId in body for ownership). attik-backend/src/util/functions/isn/isnApi.ts exposes cancelISNOrder. In scope: ensure the portal can call cancel in a secure way—either by exposing the existing route to client-portal auth (e.g. JWT scoped to the inspection/client) or by adding a client-portal–specific route that validates the requesting user can act on that inspection and then performs the same cancel flow.Frontend
attik-backend/src/routes/isnPayments.ts (cancel-order route, getPaymentSettings).attik-backend/src/util/functions/isn/isnApi.js (cancelISNOrder).Please authenticate to join the conversation.
Completed
Main App
3 months ago
Linear
Get notified by email when there are changes.
Completed
Main App
3 months ago
Linear
Get notified by email when there are changes.