I’m writing a BTCPay webhook in Rust. Let me know if you’d find it useful and I can likely open source it.
I spent 4 hours yesterday trying to get Actix web to accept a middleware that can read the HTTP body content - as it’s required to do a header hmac checksum before processing the request further. Complete failure and going to use another library instead. Bit frustrating.
NB. I know hashish way to make it work, but it’s inefficient and I don’t like the approach.
What is a btw webhook
Please Login to reply.
Btc
Basically it allows your application to know when a BTCPay invoice was created, expired or settled/paid.
Then you can update your database or whatever, like assign that NIP05.
This sounds very useful