mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
22 lines
541 B
TypeScript
22 lines
541 B
TypeScript
import { registerWebhook } from '@breeztech/react-native-breez-sdk'
|
|
|
|
const webhook = async () => {
|
|
// ANCHOR: register-webook
|
|
try {
|
|
await registerWebhook('https://yourapplication.com')
|
|
} catch (err) {
|
|
console.error(err)
|
|
}
|
|
// ANCHOR_END: register-webook
|
|
}
|
|
|
|
const paymentWebhook = async () => {
|
|
// ANCHOR: register-payment-webook
|
|
try {
|
|
await registerWebhook('https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>')
|
|
} catch (err) {
|
|
console.error(err)
|
|
}
|
|
// ANCHOR_END: register-payment-webook
|
|
}
|