Allow invoice creation to only allow specific payment methods in UI (#792)

* allow invoice creation to only allow specific payment methods

* add test

* reuse existing feature

* final fixes
This commit is contained in:
Andrew Camilleri
2019-05-02 14:29:51 +02:00
committed by Nicolas Dorier
parent 4bc03fbf06
commit b5f4739ae5
5 changed files with 75 additions and 2 deletions

View File

@@ -160,7 +160,6 @@ namespace BTCPayServer.Controllers
var rateRules = storeBlob.GetRateRules(_NetworkProvider);
var fetchingByCurrencyPair = _RateProvider.FetchRates(currencyPairsToFetch, rateRules, cancellationToken);
var fetchingAll = WhenAllFetched(logs, fetchingByCurrencyPair);
var supportedPaymentMethods = store.GetSupportedPaymentMethods(_NetworkProvider)
.Where(s => !excludeFilter.Match(s.PaymentId))