diff --git a/BTCPayServer/Views/UIInvoice/Checkout.cshtml b/BTCPayServer/Views/UIInvoice/Checkout.cshtml index 81eb6adf9..c1482c1ec 100644 --- a/BTCPayServer/Views/UIInvoice/Checkout.cshtml +++ b/BTCPayServer/Views/UIInvoice/Checkout.cshtml @@ -12,7 +12,7 @@ ViewData["StoreBranding"] = Model.StoreBranding; Csp.UnsafeEval(); var hasPaymentPlugins = UiExtensions.Any(extension => extension.Location == "checkout-payment-method"); - var displayedPaymentMethods = Model.AvailablePaymentMethods.Where(c => c.Displayed).ToList(); + var checkoutLink = Url.Action("Checkout", new { invoiceId = Model.InvoiceId }); } @functions { private string ToJsValue(object value) @@ -90,24 +90,20 @@ :show-recommended-fee="showRecommendedFee" class="pb-4" /> - @if (displayedPaymentMethods.Count > 1 || hasPaymentPlugins) - { -
-
-
- @foreach (var crypto in displayedPaymentMethods) - { - - @crypto.PaymentMethodName - - } - @await Component.InvokeAsync("UiExtensionPoint", new { location = "checkout-payment-method", model = Model }) -
+
+
+
+ +
- } + @await Component.InvokeAsync("UiExtensionPoint", new { location = "checkout-payment-method", model = Model }) +
pm.displayed) ?? []; } }, watch: {