mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
20 lines
575 B
Python
20 lines
575 B
Python
import breez_sdk
|
|
|
|
def webhook(sdk_services):
|
|
try:
|
|
# ANCHOR: register-webook
|
|
sdk_services.register_webhook("https://yourapplication.com")
|
|
# ANCHOR_END: register-webook
|
|
except Exception as error:
|
|
print(error)
|
|
raise
|
|
|
|
def payment_webhook(sdk_services):
|
|
try:
|
|
# ANCHOR: register-payment-webook
|
|
sdk_services.register_webhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>")
|
|
# ANCHOR_END: register-payment-webook
|
|
except Exception as error:
|
|
print(error)
|
|
raise
|