diff --git a/snippets/rust/src/webhook.rs b/snippets/rust/src/webhook.rs index d92eaac..a055e58 100644 --- a/snippets/rust/src/webhook.rs +++ b/snippets/rust/src/webhook.rs @@ -4,7 +4,7 @@ use breez_sdk_core::*; async fn webhook(sdk: Arc) -> Result<()> { // ANCHOR: register-webook - sdk.register_webhook("https://yourapplication.com").await?; + sdk.register_webhook("https://yourapplication.com".to_string()).await?; // ANCHOR_END: register-webook Ok(()) @@ -12,7 +12,7 @@ async fn webhook(sdk: Arc) -> Result<()> { async fn payment_webhook(sdk: Arc) -> Result<()> { // ANCHOR: register-payment-webook - sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=").await?; + sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=".to_string()).await?; // ANCHOR_END: register-payment-webook Ok(())