mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Fix: By default, BTC On chain, the BTC Lightning BOLT11 should be preferred
This commit is contained in:
@@ -514,7 +514,9 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
if (paymentMethodId is null)
|
||||
{
|
||||
paymentMethodId = enabledPaymentIds.First();
|
||||
paymentMethodId = enabledPaymentIds.FirstOrDefault(e => e.CryptoCode == "BTC" && e.PaymentType == PaymentTypes.BTCLike) ??
|
||||
enabledPaymentIds.FirstOrDefault(e => e.CryptoCode == "BTC" && e.PaymentType == PaymentTypes.LightningLike) ??
|
||||
enabledPaymentIds.First();
|
||||
}
|
||||
isDefaultPaymentId = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user