From 3dce7e7e9f0cefb5b3eb1a74e7b4bf8bfce9e75b Mon Sep 17 00:00:00 2001 From: radWorx Date: Mon, 18 Jan 2021 22:15:52 -0500 Subject: [PATCH 1/8] Update README.md Using Polar to test Lightning payments. --- BTCPayServer.Tests/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index c41b5e301..a0c569f87 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -26,6 +26,17 @@ You can also generate blocks: .\docker-bitcoin-generate.ps1 3 ``` +### Using Polar to test Lightning payments + +-Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. +-Goto your Store's General Settings and enable Lightning +-Build you connection string using the Connect infomation in the Polar app + +LND Connection string example: +type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true + +Now you can create a lightning invoice on BTCPayserver regtest and make payment through polar +PLEASE NOTE: ### Using the test litecoin-cli Same as bitcoin-cli, but with `.\docker-litecoin-cli.ps1` and `.\docker-litecoin-cli.sh` instead. From 2ccbb6d6a72d776ea4696a69e1c5f2ffcb3c1ea3 Mon Sep 17 00:00:00 2001 From: raddev Date: Mon, 18 Jan 2021 22:51:59 -0500 Subject: [PATCH 2/8] Update BTCPayServer.Tests/README.md Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> --- BTCPayServer.Tests/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index a0c569f87..df2d8bea5 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -28,7 +28,7 @@ You can also generate blocks: ### Using Polar to test Lightning payments --Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. +- Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. -Goto your Store's General Settings and enable Lightning -Build you connection string using the Connect infomation in the Polar app From e5540ee79fb9891098cbd2db58c75b6d2142c83d Mon Sep 17 00:00:00 2001 From: raddev Date: Mon, 18 Jan 2021 22:52:09 -0500 Subject: [PATCH 3/8] Update BTCPayServer.Tests/README.md Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> --- BTCPayServer.Tests/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index df2d8bea5..061896a4b 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -30,7 +30,7 @@ You can also generate blocks: - Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. -Goto your Store's General Settings and enable Lightning --Build you connection string using the Connect infomation in the Polar app +- Build you connection string using the Connect information in the Polar app LND Connection string example: type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true From 8d03738a5011ed729fcc983d903b87025639b8e6 Mon Sep 17 00:00:00 2001 From: raddev Date: Mon, 18 Jan 2021 22:52:21 -0500 Subject: [PATCH 4/8] Update BTCPayServer.Tests/README.md Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> --- BTCPayServer.Tests/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index 061896a4b..8f5d30286 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -29,7 +29,7 @@ You can also generate blocks: ### Using Polar to test Lightning payments - Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. --Goto your Store's General Settings and enable Lightning +- Goto your Store's General Settings and enable Lightning - Build you connection string using the Connect information in the Polar app LND Connection string example: From e3c138fa98f1c0945720b01b0d80ab7cea9e8613 Mon Sep 17 00:00:00 2001 From: radWorx Date: Tue, 19 Jan 2021 13:02:26 -0500 Subject: [PATCH 5/8] Update README.md Update README.md #2210 --- BTCPayServer.Tests/README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index a0c569f87..cc4e5cab6 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -28,15 +28,19 @@ You can also generate blocks: ### Using Polar to test Lightning payments --Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. --Goto your Store's General Settings and enable Lightning --Build you connection string using the Connect infomation in the Polar app +- Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. +- Go to your store's General Settings and enable Lightning. +- Build your connection string using the Connect infomation in the Polar app. LND Connection string example: type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true -Now you can create a lightning invoice on BTCPayserver regtest and make payment through polar -PLEASE NOTE: +Now you can create a lightning invoice on BTCPayserver regtest and make a payment through polar. + +PLEASE NOTE: You may get an exception break in Visual Studio. You must quickly click "Continue" in VS so the invoice is generated. +Or, uncheck the box that says, "Break when this exceptiontype is thrown". + + ### Using the test litecoin-cli Same as bitcoin-cli, but with `.\docker-litecoin-cli.ps1` and `.\docker-litecoin-cli.sh` instead. From eb8411611a0272266a748c7cb5eb87c0e176dad7 Mon Sep 17 00:00:00 2001 From: radWorx Date: Tue, 19 Jan 2021 13:07:19 -0500 Subject: [PATCH 6/8] Update README.md Update README.md #2210 --- BTCPayServer.Tests/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index 373702025..1e2b361bc 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -29,8 +29,8 @@ You can also generate blocks: ### Using Polar to test Lightning payments - Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. -- Go to your Store's General Settings and enable Lightning -- Build you connection string using the Connect information in the Polar app +- Go to your store's General Settings and enable Lightning. +- Build your connection string using the Connect information in the Polar app. LND Connection string example: type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true From a890d5300b97cda2fa34c887837c0fd38c4ef738 Mon Sep 17 00:00:00 2001 From: raddev Date: Tue, 19 Jan 2021 13:30:45 -0500 Subject: [PATCH 7/8] Update BTCPayServer.Tests/README.md Co-authored-by: Pavlenex --- BTCPayServer.Tests/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index 1e2b361bc..353d64854 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -35,7 +35,7 @@ You can also generate blocks: LND Connection string example: type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true -Now you can create a lightning invoice on BTCPayserver regtest and make a payment through polar. +Now you can create a lightning invoice on BTCPay Server regtest and make a payment through Polar. PLEASE NOTE: You may get an exception break in Visual Studio. You must quickly click "Continue" in VS so the invoice is generated. Or, uncheck the box that says, "Break when this exceptiontype is thrown". From deb88032cb91e4aec5ac7b6db3680b1c93c79fcc Mon Sep 17 00:00:00 2001 From: radWorx Date: Mon, 15 Feb 2021 15:15:38 -0500 Subject: [PATCH 8/8] Update README.md added missing space, moved below Using the test lightning-cli --- BTCPayServer.Tests/README.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index 353d64854..7b862234e 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -26,21 +26,6 @@ You can also generate blocks: .\docker-bitcoin-generate.ps1 3 ``` -### Using Polar to test Lightning payments - -- Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. -- Go to your store's General Settings and enable Lightning. -- Build your connection string using the Connect information in the Polar app. - -LND Connection string example: -type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true - -Now you can create a lightning invoice on BTCPay Server regtest and make a payment through Polar. - -PLEASE NOTE: You may get an exception break in Visual Studio. You must quickly click "Continue" in VS so the invoice is generated. -Or, uncheck the box that says, "Break when this exceptiontype is thrown". - - ### Using the test litecoin-cli Same as bitcoin-cli, but with `.\docker-litecoin-cli.ps1` and `.\docker-litecoin-cli.sh` instead. @@ -70,6 +55,20 @@ Please, run the test `CanSetLightningServer`, this will establish a channel betw Alternatively you can run the `./docker-lightning-channel-setup.sh` script to establish the channel connection. The `./docker-lightning-channel-teardown.sh` script closes any existing lightning channels. +### Alternative Lightning testing: Using Polar to test Lightning payments + +- Install and run [Polar](https://lightningpolar.com/). Setup a small network of nodes. +- Go to your store's General Settings and enable Lightning. +- Build your connection string using the Connect information in the Polar app. + +LND Connection string example: +type=lnd-rest;server=https://127.0.0.1:8084/;macaroonfilepath="local path to admin.macaroon on your computer, without these quotes";allowinsecure=true + +Now you can create a lightning invoice on BTCPay Server regtest and make a payment through Polar. + +PLEASE NOTE: You may get an exception break in Visual Studio. You must quickly click "Continue" in VS so the invoice is generated. +Or, uncheck the box that says, "Break when this exception type is thrown". + ## FAQ `docker-compose up dev` failed or tests are not passing, what should I do?