lnbits / satspay

Create onchain and LN charges
MIT License
8 stars 4 forks source link

Satspay webhook works only when frontend is opened #16

Closed LightRider5 closed 1 year ago

LightRider5 commented 1 year ago

The webhook for the Satspay plugin is activated only when the invoice is settled using the QR code on the Satspay frontend site. If the invoice is retrieved through the API and then paid, the webhook will not be triggered. After paying the invoice, if I wait for 3 minutes and then access the frontend, only then does the webhook get triggered. I could not figure out if this is a Lnbits problem or has to do with my local setup.

I get this error in my Lnbits backend:

2023-08-18 19:53:57.53 | INFO | > got a payment notification 2023-08-18 19:53:57.57 | ERROR | this should never happen

The problem does not occur with ordinary Lightning invoices.

Lnbits 0.10.9 SatsPay 0.2.3

motorina0 commented 1 year ago

Should get fixed with this PR: https://github.com/lnbits/satspay/pull/14

talvasconcelos commented 1 year ago

Fixed