This commit is contained in:
Kukks
2023-02-23 15:32:54 +01:00
parent 1a44b774aa
commit 451816d45c
8 changed files with 90 additions and 72 deletions

View File

@@ -74,23 +74,23 @@ namespace BTCPayServer.Plugins.Wabisabi
}
await _walletProvider.SettingsUpdated(storeId, wabisabiSettings);
var existingProcessor = (await _payoutProcessorService.GetProcessors(new PayoutProcessorService.PayoutProcessorQuery()
{
Stores = new[] {storeId},
Processors = new[] {"Wabisabi"},
})).FirstOrDefault();
_eventAggregator.Publish(new PayoutProcessorUpdated()
{
Id = existingProcessor?.Id,
Data = paybatching? new PayoutProcessorData()
{
Id = existingProcessor?.Id,
Processor = "Wabisabi",
StoreId = storeId,
PaymentMethod = "BTC",
}: null
});
// var existingProcessor = (await _payoutProcessorService.GetProcessors(new PayoutProcessorService.PayoutProcessorQuery()
// {
// Stores = new[] {storeId},
// Processors = new[] {"Wabisabi"},
//
// })).FirstOrDefault();
// _eventAggregator.Publish(new PayoutProcessorUpdated()
// {
// Id = existingProcessor?.Id,
// Data = paybatching? new PayoutProcessorData()
// {
// Id = existingProcessor?.Id,
// Processor = "Wabisabi",
// StoreId = storeId,
// PaymentMethod = "BTC",
// }: null
// });
}