←
TECH DEBT TRIBUNAL
No Idempotency Keys on Payment API
⏱ 00:00
Senior · ~30 min
Explorer
Briefing
📂 src/payments
📄
idempotentPayment.ts
📄
schema.sql
read-only
idempotentPayment.ts
schema.sql
🔒
Loading...
Live Analysis
Cyclomatic Complexity
LIVE
0
/ 4 target
Complexity is within acceptable limits.
Objectives
PENDING
1
/ 4
✓ Generate a deterministic idempotency key from userId+orderId+amount
○ Check DB for existing idempotency key before charging
○ Pass idempotency key to Stripe in request options
○ Store result in DB after successful charge
Acceptance Tests
Jest
—
/ 16
Submit to run acceptance suite.
▶ Submit Refactor