Add snippets

This commit is contained in:
Roei Erez
2023-12-14 09:46:58 +02:00
parent 31483fb54e
commit 05f18fe1df
10 changed files with 259 additions and 2 deletions

View File

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