initial coinswitch work

This commit is contained in:
Kukks
2018-12-11 12:47:38 +01:00
parent 94be2b46d5
commit c00c95efcf
13 changed files with 419 additions and 36 deletions

View File

@@ -464,6 +464,14 @@ namespace BTCPayServer.Controllers
Action = nameof(UpdateChangellySettings),
Provider = "Changelly"
});
var coinSwitchEnabled = storeBlob.CoinSwitchSettings != null && storeBlob.CoinSwitchSettings.Enabled;
vm.ThirdPartyPaymentMethods.Add(new StoreViewModel.ThirdPartyPaymentMethod()
{
Enabled = coinSwitchEnabled,
Action = nameof(UpdateCoinSwitchSettings),
Provider = "CoinSwitch"
});
}
[HttpPost]