mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
tag pos invoices too
This commit is contained in:
@@ -256,19 +256,22 @@ namespace BTCPayServer.Controllers
|
|||||||
var store = await _AppService.GetStore(app);
|
var store = await _AppService.GetStore(app);
|
||||||
store.AdditionalClaims.Add(new Claim(Policies.CanCreateInvoice.Key, store.Id));
|
store.AdditionalClaims.Add(new Claim(Policies.CanCreateInvoice.Key, store.Id));
|
||||||
var invoice = await _InvoiceController.CreateInvoiceCore(new CreateInvoiceRequest()
|
var invoice = await _InvoiceController.CreateInvoiceCore(new CreateInvoiceRequest()
|
||||||
{
|
{
|
||||||
ItemCode = choice?.Id,
|
ItemCode = choice?.Id,
|
||||||
ItemDesc = title,
|
ItemDesc = title,
|
||||||
Currency = settings.Currency,
|
Currency = settings.Currency,
|
||||||
Price = price,
|
Price = price,
|
||||||
BuyerEmail = email,
|
BuyerEmail = email,
|
||||||
OrderId = orderId,
|
OrderId = orderId,
|
||||||
NotificationURL = string.IsNullOrEmpty(notificationUrl)? settings.NotificationUrl: notificationUrl,
|
NotificationURL =
|
||||||
NotificationEmail = settings.NotificationEmail,
|
string.IsNullOrEmpty(notificationUrl) ? settings.NotificationUrl : notificationUrl,
|
||||||
RedirectURL = redirectUrl ?? Request.GetDisplayUrl(),
|
NotificationEmail = settings.NotificationEmail,
|
||||||
FullNotifications = true,
|
RedirectURL = redirectUrl ?? Request.GetDisplayUrl(),
|
||||||
PosData = string.IsNullOrEmpty(posData) ? null : posData
|
FullNotifications = true,
|
||||||
}, store, HttpContext.Request.GetAbsoluteRoot(), cancellationToken: cancellationToken);
|
PosData = string.IsNullOrEmpty(posData) ? null : posData
|
||||||
|
}, store, HttpContext.Request.GetAbsoluteRoot(),
|
||||||
|
new List<string>() {AppService.GetAppInternalTag(appId)},
|
||||||
|
cancellationToken);
|
||||||
return RedirectToAction(nameof(InvoiceController.Checkout), "Invoice", new { invoiceId = invoice.Data.Id });
|
return RedirectToAction(nameof(InvoiceController.Checkout), "Invoice", new { invoiceId = invoice.Data.Id });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user