Merge pull request #467 from Kukks/feature/coinswitch

CoinSwitch Integration
This commit is contained in:
Nicolas Dorier
2019-01-07 19:11:55 +09:00
committed by GitHub
13 changed files with 500 additions and 35 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]