mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-11 01:35:22 +01:00
17 lines
510 B
C#
17 lines
510 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using BTCPayServer.Payments.Lightning.Charge;
|
|||
|
|
|||
|
namespace BTCPayServer.Payments.Lightning
|
|||
|
{
|
|||
|
public class LightningClientFactory
|
|||
|
{
|
|||
|
public ILightningInvoiceClient CreateClient(LightningSupportedPaymentMethod supportedPaymentMethod, BTCPayNetwork network)
|
|||
|
{
|
|||
|
return new ChargeClient(supportedPaymentMethod.GetLightningChargeUrl(true), network.NBitcoinNetwork);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|