mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
20 lines
527 B
Rust
20 lines
527 B
Rust
use std::sync::Arc;
|
|
use anyhow::Result;
|
|
use breez_sdk_core::*;
|
|
|
|
async fn webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
|
// ANCHOR: register-webook
|
|
sdk.register_webhook("https://yourapplication.com").await?
|
|
// ANCHOR_END: register-webook
|
|
|
|
Ok(())
|
|
}
|
|
|
|
async fn payment_webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
|
// ANCHOR: register-payment-webook
|
|
sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>").await?
|
|
// ANCHOR_END: register-payment-webook
|
|
|
|
Ok(())
|
|
}
|