From 86063bee319e38350acadeb263d5a0b051c6bf0e Mon Sep 17 00:00:00 2001 From: Roei Erez Date: Thu, 14 Dec 2023 10:52:06 +0200 Subject: [PATCH] fix snippets --- snippets/dart_snippets/lib/webhook.dart | 1 - snippets/swift/BreezSDKExamples/Sources/Webhook.swift | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/snippets/dart_snippets/lib/webhook.dart b/snippets/dart_snippets/lib/webhook.dart index 7377860..6f18684 100644 --- a/snippets/dart_snippets/lib/webhook.dart +++ b/snippets/dart_snippets/lib/webhook.dart @@ -1,5 +1,4 @@ import 'package:breez_sdk/breez_sdk.dart'; -import 'package:breez_sdk/bridge_generated.dart'; Future webhook() async { // ANCHOR: register-webook diff --git a/snippets/swift/BreezSDKExamples/Sources/Webhook.swift b/snippets/swift/BreezSDKExamples/Sources/Webhook.swift index 38df5cf..ded8320 100644 --- a/snippets/swift/BreezSDKExamples/Sources/Webhook.swift +++ b/snippets/swift/BreezSDKExamples/Sources/Webhook.swift @@ -9,12 +9,12 @@ import BreezSDK func webhook(sdk: BlockingBreezServices) throws { // ANCHOR: register-webook - sdk.registerWebhook(webhookUrl: "https://yourapplication.com") + try sdk.registerWebhook(webhookUrl: "https://yourapplication.com") // ANCHOR_END: register-webook } func paymentWebhook(sdk: BlockingBreezServices) { // ANCHOR: register-payment-webook - sdk.registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token=") + try sdk.registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token=") // ANCHOR_END: register-payment-webook }