Pull request reviews
Real-looking pull requests with a few problems hidden in the diff. Review them the way you would at work: select lines, write comments with a severity, submit, then compare with the reviewer's findings.
Add an invoice export endpoint
Adds GET /api/invoices/export so customers can download their invoices as CSV. Uses the existing invoice repository. Tested locally with two accounts; both see their own invoices.
Cache the account summary and log the request
Speeds up the summary endpoint by caching account_summary with lru_cache. Adds request logging for support so we can trace slow calls. Load tested: p95 dropped from 480 ms to 35 ms.
Retry card charges and verify the webhook
Adds PaymentService.charge with a soft retry: gateway errors return OK because the nightly job will retry them. Adds webhook verification with a shared secret. Customer id is read from the X-Customer-Id header set by the API gateway.