Add LNURL-verify notification plugin tasks (#911)

* Add LNURL-verify notification plugin tasks

* Only settled when MRH payment is complete

* Ignore unknown JSON keys

* Log fail replyURL

* Prevent escaping slashes
This commit is contained in:
Ross Savage
2025-05-15 06:26:32 +02:00
committed by GitHub
parent f8275cbd17
commit 42c7bfe285
14 changed files with 279 additions and 18 deletions

View File

@@ -80,6 +80,8 @@ open class SDKNotificationService: UNNotificationServiceExtension {
return LnurlPayInfoTask(payload: payload, logger: self.logger, contentHandler: contentHandler, bestAttemptContent: bestAttemptContent)
case Constants.MESSAGE_TYPE_LNURL_PAY_INVOICE:
return LnurlPayInvoiceTask(payload: payload, logger: self.logger, contentHandler: contentHandler, bestAttemptContent: bestAttemptContent)
case Constants.MESSAGE_TYPE_LNURL_PAY_VERIFY:
return LnurlPayVerifyTask(payload: payload, logger: self.logger, contentHandler: contentHandler, bestAttemptContent: bestAttemptContent)
default:
return nil
}