mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Add ability to set default payment method for pay button (#3606)
* Add ability to set default payment method for pay button close #3604 * Add "#nullable enable" to UIStoresController * Add PaymentMethodOptionViewModel * Add explicit "Use the store’s default" option
This commit is contained in:
@@ -38,7 +38,7 @@ namespace BTCPayServer.Data
|
||||
return paymentMethodIds;
|
||||
}
|
||||
|
||||
public static void SetDefaultPaymentId(this StoreData storeData, PaymentMethodId defaultPaymentId)
|
||||
public static void SetDefaultPaymentId(this StoreData storeData, PaymentMethodId? defaultPaymentId)
|
||||
{
|
||||
storeData.DefaultCrypto = defaultPaymentId?.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user