mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
22 lines
522 B
Go
22 lines
522 B
Go
package example
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func Webhook() {
|
|
// ANCHOR: register-webook
|
|
if err := sdk.RegisterWebhook("https://yourapplication.com"); err != nil {
|
|
log.Printf("Webhook registration failed: %v", err)
|
|
}
|
|
// ANCHOR_END: register-webook
|
|
}
|
|
|
|
func PaymentWebhook() {
|
|
// ANCHOR: register-payment-webook
|
|
if err := sdk.RegisterWebhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>"); err != nil {
|
|
log.Printf("Webhook registration failed: %v", err)
|
|
}
|
|
// ANCHOR_END: register-payment-webook
|
|
}
|