Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

LNURL request urls are not generated properly when the callback contains query string #349

Open
tkthundr opened this issue Dec 30, 2020 · 0 comments

Comments

@tkthundr
Copy link

Describe the problem/bug
lnurl urls are not properly generated when the callback has a query string in it.

if request.callbackUrl=https://lnpay.co/v1/user/wallet/waka_5wtZllyHmwYqMJY5zA6kEP6/lnurl-process?ott=yolo

let urlString = "\(request.callbackURL)?k1=\(request.ephemeralSecret)&pr=\(invoice)"

generates https://lnpay.co/v1/user/wallet/waka_5wtZllyHmwYqMJY5zA6kEP6/lnurl-process?ott=yolo?k1=123&pr=lnbc....

To Reproduce
Steps to reproduce the behavior:
try this lnurl withdraw request

LNURL1DP68GURN8GHJ7MRWWPSHJTNRDUHHVVF0WASKCMR9WSHHWCTTV90N2AM5TFKXC72GD4M4JU2DFFVN27JPXE4525PK9AKXUATJDSKHQUN0VDJHXUELDA68G0T4DYKHWDFRGLW

Expected behavior
The LNURL withdraw works properly

Actual behavior
withdraw fails

Screenshots/Links

Additional context

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant