Allow email notifications when creating invoices from Web UI (#2959)

Currently invoice email notifications are only sent when the invoice is created via the API. This commit adds an option to set an email address for notifications when an invoice is created from the Web UI.
This commit is contained in:
Aaron Clauson
2021-10-10 07:54:25 +01:00
committed by GitHub
parent 86956c1e7b
commit a7c093a0eb
4 changed files with 15 additions and 1 deletions

View File

@@ -868,6 +868,8 @@ namespace BTCPayServer.Controllers
Enabled = true
}),
DefaultPaymentMethod = model.DefaultPaymentMethod,
NotificationEmail = model.NotificationEmail,
ExtendedNotifications = model.NotificationEmail != null
}, store, HttpContext.Request.GetAbsoluteRoot(), cancellationToken: cancellationToken);
TempData[WellKnownTempData.SuccessMessage] = $"Invoice {result.Data.Id} just created!";