Merge pull request #108 from breez/webhooks

Webhooks documentation.
This commit is contained in:
Roei Erez
2023-12-17 14:42:44 +02:00
committed by GitHub
12 changed files with 394 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import 'package:breez_sdk/breez_sdk.dart';
Future<void> webhook() async {
// ANCHOR: register-webook
await BreezSDK().registerWebhook(webhookUrl: "https://yourapplication.com");
// ANCHOR_END: register-webook
}
Future<void> paymentWebhook({required String paymentHash}) async {
// ANCHOR: register-payment-webook
await BreezSDK().registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>");
// ANCHOR_END: register-payment-webook
}