diff --git a/snippets/csharp/ServiceStatus.cs b/snippets/csharp/ServiceStatus.cs index c35c11f..70ab3c5 100644 --- a/snippets/csharp/ServiceStatus.cs +++ b/snippets/csharp/ServiceStatus.cs @@ -1,6 +1,6 @@ using Breez.Sdk; -public class ServiceStatusSnippets +public class WebhooksSnippets { public void HealthCheckStatus(BlockingBreezServices sdk) { diff --git a/snippets/dart_snippets/lib/webhook.dart b/snippets/dart_snippets/lib/webhook.dart index aec46ff..7377860 100644 --- a/snippets/dart_snippets/lib/webhook.dart +++ b/snippets/dart_snippets/lib/webhook.dart @@ -3,12 +3,12 @@ import 'package:breez_sdk/bridge_generated.dart'; Future webhook() async { // ANCHOR: register-webook - await BreezSDK().registerWebhook("https://yourapplication.com"); + await BreezSDK().registerWebhook(webhookUrl: "https://yourapplication.com"); // ANCHOR_END: register-webook } Future paymentWebhook({required String paymentHash}) async { // ANCHOR: register-payment-webook - await BreezSDK().registerWebhook("https://your-nds-service.com/notify?platform=ios&token="); + await BreezSDK().registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token="); // ANCHOR_END: register-payment-webook } diff --git a/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Webhook.kt b/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Webhook.kt index f9bc6af..40bc67e 100644 --- a/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Webhook.kt +++ b/snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/Webhook.kt @@ -1,7 +1,7 @@ package com.example.kotlinmpplib import breez_sdk.* -class ServiceStatus { +class Webhooks { fun Webhook(sdk: BlockingBreezServices) { // ANCHOR: register-webook try { diff --git a/snippets/react-native/webhook.ts b/snippets/react-native/webhook.ts index 363e259..e081c6b 100644 --- a/snippets/react-native/webhook.ts +++ b/snippets/react-native/webhook.ts @@ -2,8 +2,8 @@ import { registerWebhook } from '@breeztech/react-native-breez-sdk' const webhook = async () => { // ANCHOR: register-webook - await registerWebhook("https://yourapplication.com") - // ANCHOR_END: register-webook + await registerWebhook('https://yourapplication.com') + // ANCHOR_END: register-webook } const paymentWebhook = async () => { diff --git a/snippets/swift/BreezSDKExamples/Sources/Webhook.swift b/snippets/swift/BreezSDKExamples/Sources/Webhook.swift index 6d6a9d4..6acd8f9 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("https://yourapplication.com") + sdk.registerWebhook(webhookUrl: "https://yourapplication.com") // ANCHOR_END: register-webook } func paymentWebhook(sdk: BlockingBreezServices) { // ANCHOR: register-payment-webook - sdk.registerWebhook("https://your-nds-service.com/notify?platform=ios&token=").await? + sdk.registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token=").await? // ANCHOR_END: register-payment-webook }