From 7d11696ce6c555d3f0adc4a0da03d2c895d0a596 Mon Sep 17 00:00:00 2001 From: Stas Date: Thu, 18 Sep 2025 11:05:58 +0200 Subject: Add support for updating the webhook of an existing invoice This feature allows updating the webhook for an already created invoice. It will be especially useful for our ongoing integration of your wallet into our system. --- routes/invoices.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/invoices.ts b/routes/invoices.ts index 430c926d..54b1a30b 100644 --- a/routes/invoices.ts +++ b/routes/invoices.ts @@ -58,6 +58,8 @@ export default { let invoice = await g(`invoice:${id}`); const user = await g(`user:${invoice.uid}`); invoice.tip = body.invoice.tip; + invoice.webhook = body.invoice.webhook; + invoice.secret = body.invoice.secret; invoice = await generate({ invoice, user }); await s(`invoice:${id}`, invoice); -- cgit v1.2.3