Global Feed Post Login
Replying to Avatar Blake

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.

Avatar
Water Blower 2y ago

What is a btw webhook

Reply to this note

Please Login to reply.

Discussion

Avatar
Water Blower 2y ago

Btc

Avatar
Blake 2y ago

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.

Avatar
Water Blower 2y ago

This sounds very useful

Thread collapsed
Thread collapsed
Thread collapsed