mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
fix snippets
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import 'package:breez_sdk/breez_sdk.dart';
|
import 'package:breez_sdk/breez_sdk.dart';
|
||||||
import 'package:breez_sdk/bridge_generated.dart';
|
|
||||||
|
|
||||||
Future<void> webhook() async {
|
Future<void> webhook() async {
|
||||||
// ANCHOR: register-webook
|
// ANCHOR: register-webook
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ import BreezSDK
|
|||||||
|
|
||||||
func webhook(sdk: BlockingBreezServices) throws {
|
func webhook(sdk: BlockingBreezServices) throws {
|
||||||
// ANCHOR: register-webook
|
// ANCHOR: register-webook
|
||||||
sdk.registerWebhook(webhookUrl: "https://yourapplication.com")
|
try sdk.registerWebhook(webhookUrl: "https://yourapplication.com")
|
||||||
// ANCHOR_END: register-webook
|
// ANCHOR_END: register-webook
|
||||||
}
|
}
|
||||||
|
|
||||||
func paymentWebhook(sdk: BlockingBreezServices) {
|
func paymentWebhook(sdk: BlockingBreezServices) {
|
||||||
// ANCHOR: register-payment-webook
|
// ANCHOR: register-payment-webook
|
||||||
sdk.registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>")
|
try sdk.registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>")
|
||||||
// ANCHOR_END: register-payment-webook
|
// ANCHOR_END: register-payment-webook
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user