Generate a wallet object for all scripts, save source in generatedBy rather than receive label (#4413)

This commit is contained in:
Nicolas Dorier
2022-12-08 13:16:18 +09:00
committed by GitHub
parent f5c5178f95
commit 9a4dec57d1
13 changed files with 178 additions and 78 deletions

View File

@@ -711,8 +711,7 @@ namespace BTCPayServer.Controllers
var paymentMethodDetails = paymentMethod.GetPaymentMethodDetails();
if (!paymentMethodDetails.Activated)
{
if (await _InvoiceRepository.ActivateInvoicePaymentMethod(_EventAggregator, _NetworkProvider,
_paymentMethodHandlerDictionary, store, invoice, paymentMethod.GetId()))
if (await _invoiceActivator.ActivateInvoicePaymentMethod(paymentMethod.GetId(), invoice, store))
{
return await GetInvoiceModel(invoiceId, paymentMethodId, lang);
}