LNURL: Use Lightning description template in LNURL metadata (#3667)

* LNURL: Use Lightning description template in LNURL metadata

Unifies the invoice description for the Lightning and LNURL payment methods and fixes #3634.

* Add POS Order ID for consistency with Crowdfund

* LNURL: Add POS item metadata to invoice

For consistency with the Lightning payment method. Closes #3655.
This commit is contained in:
d11n
2022-04-24 13:36:10 +02:00
committed by GitHub
parent 51690b47a3
commit 54e106ec74
3 changed files with 53 additions and 24 deletions

View File

@@ -219,7 +219,7 @@ namespace BTCPayServer.Controllers
Currency = settings.Currency,
Price = price,
BuyerEmail = email,
OrderId = orderId,
OrderId = orderId ?? AppService.GetPosOrderId(appId),
NotificationURL =
string.IsNullOrEmpty(notificationUrl) ? settings.NotificationUrl : notificationUrl,
RedirectURL = !string.IsNullOrEmpty(redirectUrl) ? redirectUrl