Seaparate CoinSwitch as a plugin (#2390)

* Separate coinswitch as a system plugin

* Decouple Coinswitch from Checkout UI

* remove dummy csproj

* Remove CoinSwitchTests.cs per @NicolasDorier feedback

Co-authored-by: rockstardev <rockstardev@users.noreply.github.com>
This commit is contained in:
Andrew Camilleri
2021-04-13 13:19:48 +02:00
committed by GitHub
parent 2e12befb8b
commit 64e34d0ef5
28 changed files with 249 additions and 353 deletions

View File

@@ -553,15 +553,6 @@ namespace BTCPayServer.Controllers
break;
}
}
var coinSwitchEnabled = storeBlob.CoinSwitchSettings != null && storeBlob.CoinSwitchSettings.Enabled;
vm.ThirdPartyPaymentMethods.Add(new StoreViewModel.AdditionalPaymentMethod()
{
Enabled = coinSwitchEnabled,
Action = nameof(UpdateCoinSwitchSettings),
Provider = "CoinSwitch"
});
}