diff --git a/payments-api/invoices.py b/payments-api/invoices.py --- a/payments-api/invoices.py +++ b/payments-api/invoices.py @@ -1,4 +1,5 @@ """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()