mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
21 lines
525 B
Swift
21 lines
525 B
Swift
//
|
|
// ServiceStatus.swift
|
|
//
|
|
//
|
|
//
|
|
|
|
import Foundation
|
|
import BreezSDK
|
|
|
|
func webhook(sdk: BlockingBreezServices) throws {
|
|
// ANCHOR: register-webook
|
|
try sdk.registerWebhook(webhookUrl: "https://yourapplication.com")
|
|
// ANCHOR_END: register-webook
|
|
}
|
|
|
|
func paymentWebhook(sdk: BlockingBreezServices) throws {
|
|
// ANCHOR: register-payment-webook
|
|
try sdk.registerWebhook(webhookUrl: "https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>")
|
|
// ANCHOR_END: register-payment-webook
|
|
}
|