damus icon indicating copy to clipboard operation
damus copied to clipboard

BTCPAY Server and Zaps

Open muaawiyahtucker opened this issue 2 years ago • 3 comments

Hi.

Just a quick question/advice required. Not sure if its a bug with Damus or something to do with my BTCPay Server setup

I implemented my own LNURL using btcpay server and it works for receiving SATs payments, there are two issues:

  1. The zaps ⚡️ don’t register to Damus. Im sure there should be some call back to somewhere but I have no idea where to. I know if I use wallet of satoshi it works but with btcpay server it receives but that’s is. No feedback to the Damus system/app.
  2. Once an invoice is called for a zap, even if it’s paid or not, it cannot be zapped again. It says something like “failure to retrieve invoice”. I’m assuming it’s related to the lack of communication between the btcpay server and the app. It’s requesting the same invoice or the server refuses to respond think it already has, I don’t know. But I noticed something was wrong when noticed lots of expired invoices 🧾

Some feedback would be much appreciated.

muaawiyahtucker avatar Mar 01 '23 13:03 muaawiyahtucker

  • Make sure the nostrPubkey on the lnurlp endpoint matches the pubkey sending 9735 events
  • Ensure the description matches the descriptionhash of the bolt11 invoice

These are the main checks used otherwise damus will reject the zap. If you give me your pubkey and the nostrPubkey I can debug

  1. This is a bug with cached callback urls, damus currently caches lnurlp callback urls and if they change every time it won't work.

jb55 avatar Mar 01 '23 15:03 jb55

Regarding what you said about nostrPubkey and the pub key sending the 9735 events, then I'm not entirely sure what you mean, nor do I understand what you mean by description. But I have a test account I've been using to figure this out, and here it is: [email protected], and the LNURL is [email protected]. Does that help?

muaawiyahtucker avatar Mar 01 '23 17:03 muaawiyahtucker

Regarding the cache, then that does make sense as it is only fixed by restarting the app, (ie when the cache is cleared)

muaawiyahtucker avatar Mar 01 '23 17:03 muaawiyahtucker

any news on why zaps don't work with btcpay server? I mentioned above that I didn't understand what was required of me, in terms of nostrPubkey and the pub key sending the 9735 events and what you mean by description. If I can help solve this I would be happy to participate.

muaawiyahtucker avatar Mar 04 '23 18:03 muaawiyahtucker