diff options
| author | Stas <[email protected]> | 2025-09-18 11:05:58 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-18 11:05:58 +0200 |
| commit | 7d11696ce6c555d3f0adc4a0da03d2c895d0a596 (patch) | |
| tree | 24b2463b333877b0550e4e6640fb660fca4bd13d /routes | |
| parent | d2db386e53296babe4e4068ca8d68b3c052e0efb (diff) | |
| download | coinos-server-7d11696ce6c555d3f0adc4a0da03d2c895d0a596.tar.gz coinos-server-7d11696ce6c555d3f0adc4a0da03d2c895d0a596.zip | |
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.
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/invoices.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
