diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 733367c72..1baa06c5e 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -2070,7 +2070,8 @@ namespace BTCPayServer.Tests var res = await s.Server.CustomerLightningD.Pay(lnurlResponse.Pr); Assert.Equal(PayResult.Error, res.Result); - await s.Server.CustomerLightningD.Pay(lnurlResponse2.Pr); + res = await s.Server.CustomerLightningD.Pay(lnurlResponse2.Pr); + Assert.Equal(PayResult.Ok, res.Result); await TestUtils.EventuallyAsync(async () => { var inv = await s.Server.PayTester.InvoiceRepository.GetInvoice(i); diff --git a/BTCPayServer/Controllers/UILNURLController.cs b/BTCPayServer/Controllers/UILNURLController.cs index d407796c2..e83435dea 100644 --- a/BTCPayServer/Controllers/UILNURLController.cs +++ b/BTCPayServer/Controllers/UILNURLController.cs @@ -641,8 +641,7 @@ namespace BTCPayServer try { var expiry = i.ExpirationTime.ToUniversalTime() - DateTimeOffset.UtcNow; - var metadata = JsonConvert.SerializeObject(lnurlPayRequest.Metadata); - var description = (await _pluginHookService.ApplyFilter("modify-lnurlp-description", metadata)) as string; + var description = (await _pluginHookService.ApplyFilter("modify-lnurlp-description", lnurlPayRequest.Metadata)) as string; if (description is null) return NotFound();