mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
20
snippets/swift/BreezSDKExamples/Sources/Webhook.swift
Normal file
20
snippets/swift/BreezSDKExamples/Sources/Webhook.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user