Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment to lightning meta tag not possible #38

Open
MoritzKa opened this issue Sep 5, 2023 · 0 comments
Open

Payment to lightning meta tag not possible #38

MoritzKa opened this issue Sep 5, 2023 · 0 comments

Comments

@MoritzKa
Copy link
Contributor

MoritzKa commented Sep 5, 2023

Example page: https://morkam4.dreamhosters.com/
Expected behavior: The Alby extension recognizes the lightning meta, asks for an invoice and pays the invoice
J6gZIaq8Bq

Error message
uidhxp6meL

console of pop up:

ignoring bech32 parsing error Error: Unknown character /
    at Object.decode (popup.bundle.js?b74b3a41284dcc8a4338:2:24506)
    at popup.bundle.js?b74b3a41284dcc8a4338:2:1532424
    at Pc (popup.bundle.js?b74b3a41284dcc8a4338:2:1532497)
    at Object.getDetails (popup.bundle.js?b74b3a41284dcc8a4338:2:1532860)
    at onClick (popup.bundle.js?b74b3a41284dcc8a4338:2:1534180)
    at Object.Pe (popup.bundle.js?b74b3a41284dcc8a4338:2:697991)
    at Fe (popup.bundle.js?b74b3a41284dcc8a4338:2:698145)
    at popup.bundle.js?b74b3a41284dcc8a4338:2:718027
    at jr (popup.bundle.js?b74b3a41284dcc8a4338:2:718121)
    at Br (popup.bundle.js?b74b3a41284dcc8a4338:2:718535)

Page source: <meta name="lightning" content="lnurlp:morkam4.dreamhosters.com/wp-json/lnp-alby/v1/lnurlp" /></head>

morkam4.dreamhosters.com/wp-json/lnp-alby/v1/lnurlp

leads to
{"status":"OK","callback":"https:\/\/morkam4.dreamhosters.com\/wp-json\/lnp-alby\/v1\/lnurlp\/callback","minSendable":10000,"maxSendable":1000000000,"tag":"payRequest","commentAllowed":128,"payerData":{"name":{"mandatory":false}},"metadata":"[[\"text\\\/identifier\",\"https:\\\/\\\/morkam4.dreamhosters.com\"],[\"text\\\/plain\",\"Just another WordPress site\"]]"}

https://morkam4.dreamhosters.com//wp-json//lnp-alby//v1//lnurlp//callback
adding ?amount=10000 to https://morkam4.dreamhosters.com//wp-json//lnp-alby//v1//lnurlp//callback manually gives
{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}

if I change it to https://morkam4.dreamhosters.com//index.php//wp-json//lnp-alby//v1//lnurlp//callback I get an invoice which I can pay manually.

other example page: http://wp.albylabs.com/
Page source: <meta name="lightning" content="lnurlp:wp.albylabs.com/index.php/wp-json/lnp-alby/v1/lnurlp" /></head>

adding ?amount=10000 to http://wp.albylabs.com//index.php//wp-json//lnp-alby//v1//lnurlp//callback manually gives me an invoice which I can pay manually

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

No branches or pull requests

1 participant