getAlby / getAlby/lightning-publisher-wordpress
Payment to lightning meta tag not possible
- Dominant language
- PHP
- Stars
- 22
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
Example page: https://morkam4.dreamhosters.com/
Expected behavior: The Alby extension recognizes the lightning meta, asks for an invoice and pays the invoice

Error message

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: ``
`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: ``
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.