diff --git a/BTCPayServer/Controllers/GreenField/StoreLightningNetworkPaymentMethodsController.cs b/BTCPayServer/Controllers/GreenField/StoreLightningNetworkPaymentMethodsController.cs index ab781e658..bf7692f6a 100644 --- a/BTCPayServer/Controllers/GreenField/StoreLightningNetworkPaymentMethodsController.cs +++ b/BTCPayServer/Controllers/GreenField/StoreLightningNetworkPaymentMethodsController.cs @@ -56,10 +56,10 @@ namespace BTCPayServer.Controllers.GreenField var excludedPaymentMethods = blob.GetExcludedPaymentMethods(); return Ok(Store.GetSupportedPaymentMethods(_btcPayNetworkProvider) .Where((method) => method.PaymentId.PaymentType == PaymentTypes.LightningLike) - .OfType() - .Select(strategy => - new LightningNetworkPaymentMethodData(strategy.PaymentId.CryptoCode, - strategy.AccountDerivation.ToString(), !excludedPaymentMethods.Match(strategy.PaymentId))) + .OfType() + .Select(paymentMethod => + new LightningNetworkPaymentMethodData(paymentMethod.PaymentId.CryptoCode, + paymentMethod.GetLightningUrl().ToString(), !excludedPaymentMethods.Match(paymentMethod.PaymentId))) .Where((result) => !enabledOnly || result.Enabled) .ToList() ); diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-payment-methods.lightning-network.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-payment-methods.lightning-network.json index f943d05c5..af42d0733 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-payment-methods.lightning-network.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.stores-payment-methods.lightning-network.json @@ -320,7 +320,7 @@ "connectionString": { "type": "string", "description": "The lightning connection string", - "example": "xpub..." + "example": "type=clightning;server=..." } } }