Remove no javascript for checkout

This commit is contained in:
nicolas.dorier 2024-10-07 15:18:41 +09:00
parent b744fd6167
commit 8dcd7e6966
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
4 changed files with 3 additions and 13 deletions

View File

@ -19,7 +19,6 @@ namespace BTCPayServer.Payments.LNURLPay
ExtensionPartial = "Lightning/LightningLikeMethodCheckout",
CheckoutBodyVueComponentName = "LightningLikeMethodCheckout",
CheckoutHeaderVueComponentName = "LightningLikeMethodCheckoutHeader",
NoScriptPartialName = "Lightning/LightningLikeMethodCheckoutNoScript"
});
}
}

View File

@ -14,8 +14,7 @@ namespace BTCPayServer.Payments.Lightning
{
ExtensionPartial = "Lightning/LightningLikeMethodCheckout",
CheckoutBodyVueComponentName = "LightningLikeMethodCheckout",
CheckoutHeaderVueComponentName = "LightningLikeMethodCheckoutHeader",
NoScriptPartialName = "Lightning/LightningLikeMethodCheckoutNoScript"
CheckoutHeaderVueComponentName = "LightningLikeMethodCheckoutHeader"
});
}
}

View File

@ -108,8 +108,7 @@ namespace BTCPayServer.Services.Altcoins.Zcash.Payments
{
ExtensionPartial = "Bitcoin/BitcoinLikeMethodCheckout",
CheckoutBodyVueComponentName = "BitcoinLikeMethodCheckout",
CheckoutHeaderVueComponentName = "BitcoinLikeMethodCheckoutHeader",
NoScriptPartialName = "Bitcoin/BitcoinLikeMethodCheckoutNoScript"
CheckoutHeaderVueComponentName = "BitcoinLikeMethodCheckoutHeader"
};
}

View File

@ -17,14 +17,7 @@
<h1>Pay with @Model.StoreName</h1>
@if (Model.Status == "new")
{
if (!string.IsNullOrEmpty(Model.UISettings?.NoScriptPartialName))
{
<partial model="@Model" name="@Model.UISettings.NoScriptPartialName"/>
}
else
{
<h1 class="text-danger">This payment method requires javascript.</h1>
}
<h1 class="text-danger">This payment method requires javascript.</h1>
@if (displayedPaymentMethods.Count > 1)
{
<div>