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.

Reply to this note

Please Login to reply.

Discussion

What is a btw webhook

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

Hang in there. I’ve been battling Rust frustration this week too. You’ll get it. 💪

Thanks. It used to work for Actix v1-3, it’s just been broken in v4 as being supported.

I looked at rocket as an alternative.. so at least I get to learn a few more rust libraries.. was just hoping for it to take two hours.. not likely a couple days effort.