lightning-publisher-wordpress icon indicating copy to clipboard operation
lightning-publisher-wordpress copied to clipboard

Payment to lightning meta tag not possible

Open MoritzKa opened this issue 2 years ago • 0 comments

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

MoritzKa avatar Sep 05 '23 06:09 MoritzKa