Implement store templates (#6704)

* Implement store templates

* Use the template for the default rate rules

* Polish messages

* Do not show exchange selection if template has a script
This commit is contained in:
Nicolas Dorier
2025-05-09 15:58:24 +09:00
committed by GitHub
parent 0fbff219d2
commit 1e79730c6e
18 changed files with 421 additions and 124 deletions

View File

@@ -45,8 +45,6 @@ namespace BTCPayServer.Data
{
storeData.DefaultCrypto = defaultPaymentId?.ToString();
}
#pragma warning restore CS0618
public static StoreBlob GetStoreBlob(this StoreData storeData)
{
@@ -57,7 +55,7 @@ namespace BTCPayServer.Data
result.PaymentMethodCriteria.RemoveAll(criteria => criteria?.PaymentMethod is null);
return result;
}
#pragma warning restore CS0618
public static bool AnyPaymentMethodAvailable(this StoreData storeData, PaymentMethodHandlerDictionary handlers)
{
return storeData.GetPaymentMethodConfigs(handlers, true).Any();