getAlby / getAlby/lightning-publisher-wordpress

Payment to lightning meta tag not possible

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
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
![J6gZIaq8Bq](https://github.com/getAlby/lightning-publisher-wordpress/assets/13707997/be3b7bd5-2c71-4b25-9643-05300d6cac9e)

Error message
![uidhxp6meL](https://github.com/getAlby/lightning-publisher-wordpress/assets/13707997/ecf7d819-1476-4f5a-9e1d-4572a7d32bc6)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.