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

@@ -1,5 +1,3 @@
using NBXplorer.Models;
namespace BTCPayServer.Models.StoreViewModels
{
public enum WalletSetupMethod
@@ -18,7 +16,7 @@ namespace BTCPayServer.Models.StoreViewModels
public class WalletSetupViewModel : DerivationSchemeViewModel
{
public WalletSetupMethod? Method { get; set; }
public GenerateWalletRequest SetupRequest { get; set; }
public WalletSetupRequest SetupRequest { get; set; }
public string StoreId { get; set; }
public bool IsHotWallet { get; set; }