mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-12 01:15:44 +01:00
* refactor(cdk-lnbits): migrate to LNbits v1 websocket API and remove webhook support - Remove webhook-based payment notifications in favor of v1 websocket API - Add explicit documentation that only LNbits v1 API is supported - Remove webhook_url parameter and related router setup code - Simplify payment status handling by removing pending status logic - Switch to local lnbits-rs dependency for development - Remove unused axum dependency and clean up imports - Update configuration documentation and examples * refactor(cdk-lnbits): extract payment processing logic into helper methods Improve code readability by separating message processing, payment response creation, and payment hash decoding into dedicated methods. This reduces complexity in the main payment waiting loop while maintaining identical functionality * chore: bump lnbits-rs
24 lines
884 B
Markdown
24 lines
884 B
Markdown
# CDK LNBits
|
|
|
|
[](https://crates.io/crates/cdk-lnbits)
|
|
[](https://docs.rs/cdk-lnbits)
|
|
[](https://github.com/cashubtc/cdk/blob/main/LICENSE)
|
|
|
|
**ALPHA** This library is in early development, the API will change and should be used with caution.
|
|
|
|
LNBits backend implementation for the Cashu Development Kit (CDK). This provides integration with [LNBits](https://lnbits.com/) for Lightning Network functionality.
|
|
|
|
**Note: Only LNBits v1 API is supported.** This backend uses the websocket-based v1 API for real-time payment notifications.
|
|
|
|
## Installation
|
|
|
|
Add this to your `Cargo.toml`:
|
|
|
|
```toml
|
|
[dependencies]
|
|
cdk-lnbits = "*"
|
|
```
|
|
|
|
## License
|
|
|
|
This project is licensed under the [MIT License](../../LICENSE). |