diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs
index 4aac6b1ab..91c39408d 100644
--- a/BTCPayServer/Controllers/InvoiceController.UI.cs
+++ b/BTCPayServer/Controllers/InvoiceController.UI.cs
@@ -238,7 +238,8 @@ namespace BTCPayServer.Controllers
BtcPaid = accounting.Paid.ToString(),
Status = invoice.Status,
CryptoImage = "/" + GetImage(paymentMethodId, network),
- NetworkFeeDescription = $"{accounting.TxRequired} transaction{(accounting.TxRequired > 1 ? "s" : "")} x {paymentMethodDetails.GetTxFee()} {network.CryptoCode}",
+ NetworkFee = paymentMethodDetails.GetTxFee(),
+ IsMultiCurrency = invoice.GetPayments().Select(p => p.GetPaymentMethodId()).Concat(new[] { paymentMethod.GetId() }).Distinct().Count() > 1,
AllowCoinConversion = storeBlob.AllowCoinConversion,
AvailableCryptos = invoice.GetPaymentMethods(_NetworkProvider)
.Where(i => i.Network != null)
@@ -251,10 +252,6 @@ namespace BTCPayServer.Controllers
.ToList()
};
- var isMultiCurrency = invoice.GetPayments().Select(p => p.GetPaymentMethodId()).Concat(new[] { paymentMethod.GetId() }).Distinct().Count() > 1;
- if (isMultiCurrency)
- model.NetworkFeeDescription = $"{accounting.NetworkFee} {network.CryptoCode}";
-
var expiration = TimeSpan.FromSeconds(model.ExpirationSeconds);
model.TimeLeft = PrettyPrint(expiration);
return model;
diff --git a/BTCPayServer/Models/InvoicingModels/PaymentModel.cs b/BTCPayServer/Models/InvoicingModels/PaymentModel.cs
index 92d957be4..ec42fd82c 100644
--- a/BTCPayServer/Models/InvoicingModels/PaymentModel.cs
+++ b/BTCPayServer/Models/InvoicingModels/PaymentModel.cs
@@ -43,7 +43,8 @@ namespace BTCPayServer.Models.InvoicingModels
public string OrderId { get; set; }
public string CryptoImage { get; set; }
- public string NetworkFeeDescription { get; internal set; }
+ public decimal NetworkFee { get; set; }
+ public bool IsMultiCurrency { get; set; }
public int MaxTimeMinutes { get; internal set; }
public string PaymentType { get; internal set; }
public string PaymentMethodId { get; internal set; }
diff --git a/BTCPayServer/Views/Invoice/Checkout-Body.cshtml b/BTCPayServer/Views/Invoice/Checkout-Body.cshtml
index 2ab235aac..fff5ade47 100644
--- a/BTCPayServer/Views/Invoice/Checkout-Body.cshtml
+++ b/BTCPayServer/Views/Invoice/Checkout-Body.cshtml
@@ -87,7 +87,14 @@
{{$t("Network Cost")}}
- {{srvModel.networkFeeDescription }}
+
+
+ {{ srvModel.networkFee }} {{ srvModel.cryptoCode }}
+
+
+ {{$t("txCount", {count: srvModel.txCount})}} x {{ srvModel.networkFee }} {{ srvModel.cryptoCode }}
+
+
{{$t("This invoice has been paid")}}
-
+
+ {{$t("Return to StoreName", srvModel)}}
+
@@ -295,10 +300,9 @@
{{srvModel.orderId}}
-
-
- {{$t("Return to StoreName", srvModel)}}
-
+
+ {{$t("Return to StoreName", srvModel)}}
diff --git a/BTCPayServer/wwwroot/checkout/js/core.js b/BTCPayServer/wwwroot/checkout/js/core.js
index 35628b944..39c2af6cb 100644
--- a/BTCPayServer/wwwroot/checkout/js/core.js
+++ b/BTCPayServer/wwwroot/checkout/js/core.js
@@ -32,15 +32,6 @@ function onDataCallback(jsonData) {
$(".modal-dialog").removeClass("expired");
}
- if (srvModel.merchantRefLink !== "") {
- $(".action-button").click(function () {
- window.location.href = srvModel.merchantRefLink;
- });
- }
- else {
- $(".action-button").hide();
- }
-
$(".modal-dialog").addClass("paid");
resetTabsSlider();
diff --git a/BTCPayServer/wwwroot/checkout/js/langs/en.js b/BTCPayServer/wwwroot/checkout/js/langs/en.js
index a36157bcb..7ed627ff4 100644
--- a/BTCPayServer/wwwroot/checkout/js/langs/en.js
+++ b/BTCPayServer/wwwroot/checkout/js/langs/en.js
@@ -47,5 +47,8 @@ You can return to {{storeName}} if you would like to submit your payment again."
"Archived_Body": "Please contact the store for order information or assistance",
// Lightning
"BOLT 11 Invoice": "BOLT 11 Invoice",
- "Node Info": "Node Info"
+ "Node Info": "Node Info",
+ //
+ "txCount": "{{count}} transaction",
+ "txCount_plural": "{{count}} transactions"
};
diff --git a/BTCPayServer/wwwroot/checkout/js/langs/es.js b/BTCPayServer/wwwroot/checkout/js/langs/es.js
index 4df714e7d..f02c40e37 100644
--- a/BTCPayServer/wwwroot/checkout/js/langs/es.js
+++ b/BTCPayServer/wwwroot/checkout/js/langs/es.js
@@ -44,7 +44,10 @@ const locales_es = {
// Invoice archived
"This invoice has been archived": "Esta factura ha sido archivada",
"Archived_Body": "Por favor, comuníquese con la tienda para obtener información de su pedido o asistencia",
- // Lightning
+ // Lightning
"BOLT 11 Invoice": "Factura BOLT 11",
- "Node Info": "Información del nodo"
- };
+ "Node Info": "Información del nodo",
+ //
+ "txCount": "{{count}} transacción",
+ "txCount_plural": "{{count}} transacciones"
+};