diff --git a/BTCPayServer/Controllers/UIStoresController.LightningLike.cs b/BTCPayServer/Controllers/UIStoresController.LightningLike.cs index dbfd787ce..2f715b229 100644 --- a/BTCPayServer/Controllers/UIStoresController.LightningLike.cs +++ b/BTCPayServer/Controllers/UIStoresController.LightningLike.cs @@ -160,7 +160,16 @@ namespace BTCPayServer.Controllers { CryptoCode = paymentMethodId.CryptoCode }; - paymentMethod.SetLightningUrl(connectionString); + + try + { + paymentMethod.SetLightningUrl(connectionString); + } + catch (Exception ex) + { + ModelState.AddModelError(nameof(vm.ConnectionString), ex.Message); + return View(vm); + } } switch (command) diff --git a/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml b/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml index 09ce7a7c7..6a5540af6 100644 --- a/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml +++ b/BTCPayServer/Views/UIStores/SetupLightningNode.cshtml @@ -122,11 +122,19 @@
-
@@ -139,7 +147,7 @@
-
+
+

+ +

+
+
+
    +
  • + type=lndhub;server=https://login:password@lndhub.io +
  • +
+

The credentials and server address are shown as a lndhub:// URL on the "Export/Backup" screen in BlueWallet.

+

You can also use this LNDhub-URL as the connection string and BTCPay Server converts it into the expected type=lndhub connection string format:

+
    +
  • + lndhub://login:password@@https://lndhub.io +
  • +
+
+
+