fix: broken lnurl_callback (#2445)

* fix: broken lnurl_callback
This commit is contained in:
dni ⚡
2024-04-18 12:16:00 +02:00
committed by GitHub
parent 98ec59df96
commit bbfc301440
4 changed files with 36 additions and 3 deletions
+8 -1
View File
@@ -22,11 +22,18 @@ window.LNbits = {
data: data
})
},
createInvoice: async function (wallet, amount, memo, unit = 'sat') {
createInvoice: async function (
wallet,
amount,
memo,
unit = 'sat',
lnurlCallback = null
) {
return this.request('post', '/api/v1/payments', wallet.inkey, {
out: false,
amount: amount,
memo: memo,
lnurl_callback: lnurlCallback,
unit: unit
})
},