mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 06:21:37 +01:00
fix: ๐ lnpay callback url
This commit is contained in:
parent
e7b07a5e4c
commit
dad078984b
1 changed files with 4 additions and 1 deletions
|
@ -127,7 +127,10 @@ export const lnUrlResolvers = {
|
|||
|
||||
const random8byteNonce = randomBytes(8).toString('hex');
|
||||
|
||||
const finalUrl = `${callback}?amount=${
|
||||
// If the callback url already has an initial query '?' identifier we don't need to add it again.
|
||||
const initialIdentifier = callback.indexOf('?') != -1 ? '&' : '?';
|
||||
|
||||
const finalUrl = `${callback}${initialIdentifier}amount=${
|
||||
amount * 1000
|
||||
}&nonce=${random8byteNonce}&comment=${comment}`;
|
||||
|
||||
|
|
Loadingโฆ
Add table
Reference in a new issue