mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-27 09:54:55 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user