Add pull payment feature (#1639)

This commit is contained in:
Nicolas Dorier
2020-06-24 10:34:09 +09:00
committed by GitHub
parent 7805e5cea4
commit 8230a408ac
50 changed files with 3886 additions and 163 deletions

View File

@@ -53,6 +53,9 @@ namespace BTCPayServer.Controllers
private readonly DelayedTransactionBroadcaster _broadcaster;
private readonly PayjoinClient _payjoinClient;
private readonly LabelFactory _labelFactory;
private readonly ApplicationDbContextFactory _dbContextFactory;
private readonly BTCPayNetworkJsonSerializerSettings _jsonSerializerSettings;
private readonly PullPaymentHostedService _pullPaymentService;
public RateFetcher RateFetcher { get; }
@@ -74,7 +77,10 @@ namespace BTCPayServer.Controllers
SettingsRepository settingsRepository,
DelayedTransactionBroadcaster broadcaster,
PayjoinClient payjoinClient,
LabelFactory labelFactory)
LabelFactory labelFactory,
ApplicationDbContextFactory dbContextFactory,
BTCPayNetworkJsonSerializerSettings jsonSerializerSettings,
HostedServices.PullPaymentHostedService pullPaymentService)
{
_currencyTable = currencyTable;
Repository = repo;
@@ -94,6 +100,9 @@ namespace BTCPayServer.Controllers
_broadcaster = broadcaster;
_payjoinClient = payjoinClient;
_labelFactory = labelFactory;
_dbContextFactory = dbContextFactory;
_jsonSerializerSettings = jsonSerializerSettings;
_pullPaymentService = pullPaymentService;
}
// Borrowed from https://github.com/ManageIQ/guides/blob/master/labels.md