mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Add snippets
This commit is contained in:
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
|
||||
sdk.registerWebhook("https://yourapplication.com")
|
||||
// ANCHOR_END: register-webook
|
||||
}
|
||||
|
||||
func paymentWebhook(sdk: BlockingBreezServices) {
|
||||
// ANCHOR: register-payment-webook
|
||||
sdk.registerWebhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>").await?
|
||||
// ANCHOR_END: register-payment-webook
|
||||
}
|
||||
Reference in New Issue
Block a user