mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-23 00:44:26 +01:00
BOLT12 receive (#882)
* Add BOLT12 receive payment handling * Handle BOLT12 invoice requests via WS * Fix invoice request subscription on stream initialisation * Store the BOLT12 offer used to receive a payment * Address review feedback * Separate into create BOLT12 invoice fn * Update all BOLT12 offers when webhook URL changes * Deprecate Lightning for Bolt11Invoice
This commit is contained in:
@@ -72,6 +72,8 @@ open class SDKNotificationService: UNNotificationServiceExtension {
|
||||
|
||||
self.logger.log(tag: TAG, line: "\(notificationType) data string: \(payload)", level: "INFO")
|
||||
switch(notificationType) {
|
||||
case Constants.MESSAGE_TYPE_INVOICE_REQUEST:
|
||||
return InvoiceRequestTask(payload: payload, logger: self.logger, contentHandler: contentHandler, bestAttemptContent: bestAttemptContent)
|
||||
case Constants.MESSAGE_TYPE_SWAP_UPDATED:
|
||||
return SwapUpdatedTask(payload: payload, logger: self.logger, contentHandler: contentHandler, bestAttemptContent: bestAttemptContent)
|
||||
case Constants.MESSAGE_TYPE_LNURL_PAY_INFO:
|
||||
|
||||
Reference in New Issue
Block a user