mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
300d84c5d8
* Add CPFP * Sign PSBT should go back to the initial page
18 lines
620 B
C#
18 lines
620 B
C#
using System.Linq;
|
|
using BTCPayServer.Data;
|
|
|
|
namespace BTCPayServer
|
|
{
|
|
public static class StoreExtensions
|
|
{
|
|
public static DerivationSchemeSettings GetDerivationSchemeSettings(this StoreData store, BTCPayNetworkProvider networkProvider, string cryptoCode)
|
|
{
|
|
var paymentMethod = store
|
|
.GetSupportedPaymentMethods(networkProvider)
|
|
.OfType<DerivationSchemeSettings>()
|
|
.FirstOrDefault(p => p.PaymentId.PaymentType == Payments.PaymentTypes.BTCLike && p.PaymentId.CryptoCode == cryptoCode);
|
|
return paymentMethod;
|
|
}
|
|
}
|
|
}
|