| diff --git a/payments-api/invoices.py b/payments-api/invoices.py | |
| --- a/payments-api/invoices.py | |
| +++ b/payments-api/invoices.py | |
| """Lab invoice reader for payments-api. Synthetic.""" | |
| def get_invoice(invoice_id): | |
| - return {"id": invoice_id} | |
| + cursor.execute("SELECT * FROM invoices WHERE id = %s", (invoice_id,)) | |
| + return cursor.fetchone() | |