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

@@ -0,0 +1,10 @@
using NBXplorer.Models;
namespace BTCPayServer.Models.StoreViewModels
{
public class WalletSetupRequest : GenerateWalletRequest
{
public bool PayJoinEnabled { get; set; }
public bool CanUsePayJoin { get; set; }
}
}