Rendering of Conversion tab on Invoice if enabled in store settings

This commit is contained in:
lepipele
2018-03-17 23:49:09 -05:00
parent c36a900627
commit 14b70ff35e
3 changed files with 39 additions and 26 deletions

View File

@@ -229,6 +229,7 @@ namespace BTCPayServer.Controllers
Status = invoice.Status,
CryptoImage = "/" + GetImage(paymentMethodId, network),
NetworkFeeDescription = $"{accounting.TxRequired} transaction{(accounting.TxRequired > 1 ? "s" : "")} x {paymentMethodDetails.GetTxFee()} {network.CryptoCode}",
AllowCoinConversion = store.GetStoreBlob().AllowCoinConversion,
AvailableCryptos = invoice.GetPaymentMethods(_NetworkProvider)
.Where(i => i.Network != null)
.Select(kv=> new PaymentModel.AvailableCrypto()