mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Add "{Invoice.OrderId}" to list of supported email interpolation strings (#4202)
close #4112
This commit is contained in:
parent
66c2148a63
commit
3f19dc55fa
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ using BTCPayServer.Services.Mails;
|
|||
using BTCPayServer.Services.Stores;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using BTCPayServer.Services.Invoices;
|
||||
using InvoiceData = BTCPayServer.Client.Models.InvoiceData;
|
||||
|
||||
namespace BTCPayServer.HostedServices;
|
||||
|
@ -92,6 +93,7 @@ public class StoreEmailRuleProcessorSender : EventHostedServiceBase
|
|||
.Replace("{Invoice.Price}", i.Amount.ToString(CultureInfo.InvariantCulture))
|
||||
.Replace("{Invoice.Currency}", i.Currency)
|
||||
.Replace("{Invoice.Status}", i.Status.ToString())
|
||||
.Replace("{Invoice.AdditionalStatus}", i.AdditionalStatus.ToString());
|
||||
.Replace("{Invoice.AdditionalStatus}", i.AdditionalStatus.ToString())
|
||||
.Replace("{Invoice.OrderId}", i.Metadata.ToObject<InvoiceMetadata>().OrderId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue