diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs index f6e04d78c..8d65f4eef 100644 --- a/BTCPayServer/Controllers/InvoiceController.UI.cs +++ b/BTCPayServer/Controllers/InvoiceController.UI.cs @@ -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() diff --git a/BTCPayServer/Models/InvoicingModels/PaymentModel.cs b/BTCPayServer/Models/InvoicingModels/PaymentModel.cs index 964871636..d82f16e74 100644 --- a/BTCPayServer/Models/InvoicingModels/PaymentModel.cs +++ b/BTCPayServer/Models/InvoicingModels/PaymentModel.cs @@ -43,5 +43,7 @@ namespace BTCPayServer.Models.InvoicingModels public int MaxTimeMinutes { get; internal set; } public string PaymentType { get; internal set; } public string PaymentMethodId { get; internal set; } + + public bool AllowCoinConversion { get; set; } } } diff --git a/BTCPayServer/Views/Invoice/Checkout.cshtml b/BTCPayServer/Views/Invoice/Checkout.cshtml index 4d8317795..252208640 100644 --- a/BTCPayServer/Views/Invoice/Checkout.cshtml +++ b/BTCPayServer/Views/Invoice/Checkout.cshtml @@ -170,10 +170,17 @@
Copy
-
- Conversion -
-
+ @if (Model.AllowCoinConversion) + { +
+ Conversion +
+
+ } + else + { +
+ }
@@ -262,29 +269,32 @@
-
-
- - You can pay {{ srvModel.btcDue }} {{ srvModel.cryptoCode }} using altcoins other than the ones merchant directly supports. -

- This service is provided by 3rd party. Please keep in mind that - we have no control over how providers will forward your funds. - Invoice will only be marked paid once funds are received on {{srvModel.cryptoCode}} Blockchain. -
-
-
- - - - + @if (Model.AllowCoinConversion) + { +
+
+ + You can pay {{ srvModel.btcDue }} {{ srvModel.cryptoCode }} using altcoins other than the ones merchant directly supports. +

+ This service is provided by 3rd party. Please keep in mind that + we have no control over how providers will forward your funds. + Invoice will only be marked paid once funds are received on {{srvModel.cryptoCode}} Blockchain. +
+
+
+ + + + - @*Changelly doesn't have TO_AMOUNT support so we can't include it - - - Changelly - *@ -
-
+ @*Changelly doesn't have TO_AMOUNT support so we can't include it + + + Changelly + *@ +
+
+ }