lnbits / lnurlp

MIT License
9 stars 8 forks source link

Webhook broken (?) plus parameter documentation #6

Closed dadofsambonzuki closed 1 year ago

dadofsambonzuki commented 1 year ago

Hey,

We're trying to get the LNURLp webhook working with our Discord, but it doesn't seem to be firing. Other webhooks working fine.

Is there an bug with the latest version 0.2.1?

Also, could someone update the README to explain how to use the webook headers and webhook custom data fields.

Cheers!

dadofsambonzuki commented 1 year ago

Doesn't look like anything is hooked-up in success_action.

https://github.com/lnbits/lnurlp/blob/4022faf778fffc8801bcab168413afefa51e5cf6/lnurl.py#LL91C55-L91C55

dni commented 1 year ago

the webhook is dispatched here, when invoice is paid. https://github.com/lnbits/lnurlp/blob/4022faf778fffc8801bcab168413afefa51e5cf6/tasks.py#L33

talvasconcelos commented 1 year ago

Webhook custom data, and headers are not passing from the UI to the DB!