Add payjoin option to hot wallet setup (#2450)

* Add payjoin option to hot wallet setup

Enables payjoin by default when creating a hot wallet and offers the user an opt-out.

Test fix

* Display PayJoin option only if it is available

* Test fixes

* Update hot wallet checks

* Test fix after rebase

* Use toggle buttons for enabling options
This commit is contained in:
d11n
2021-06-18 03:25:17 +02:00
committed by GitHub
parent 6b4ff4ce2c
commit 3c80621dac
12 changed files with 108 additions and 92 deletions

View File

@@ -88,6 +88,7 @@ namespace BTCPayServer.Models.StoreViewModels
[Display(Name = "Enable Payjoin/P2EP")]
public bool PayJoinEnabled { get; set; }
public bool CanUsePayJoin { get; set; }
public bool HintWallet { get; set; }
public bool HintLightning { get; set; }