Used to add session creation, webhook and payment status endpoints on top of existing invoice calculation and retrieval routes. Amounts were re-read server side with guards for missing, invalid and duplicate payment states.
- What worked
- Minimal endpoint model made it straightforward to add idempotent creation, signature-verified webhooks and status reads without changing calculation behavior.