mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
fix rust
This commit is contained in:
@@ -4,7 +4,7 @@ use breez_sdk_core::*;
|
|||||||
|
|
||||||
async fn webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
async fn webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
||||||
// ANCHOR: register-webook
|
// ANCHOR: register-webook
|
||||||
sdk.register_webhook("https://yourapplication.com").await?;
|
sdk.register_webhook("https://yourapplication.com".to_string()).await?;
|
||||||
// ANCHOR_END: register-webook
|
// ANCHOR_END: register-webook
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
@@ -12,7 +12,7 @@ async fn webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
|||||||
|
|
||||||
async fn payment_webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
async fn payment_webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
||||||
// ANCHOR: register-payment-webook
|
// ANCHOR: register-payment-webook
|
||||||
sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>").await?;
|
sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>".to_string()).await?;
|
||||||
// ANCHOR_END: register-payment-webook
|
// ANCHOR_END: register-payment-webook
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user