From 2f5f3e1b5121497d0341aca0c74aa948de5b96ee Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Fri, 25 Nov 2022 03:04:34 +0100 Subject: [PATCH] Do not enable receipts for payment requests (#4342) Payment requests have a receipt-ish style by default. Receipts for each individual invoice of a payment request can be quite confusing as individually they do not prove the pay request was settled. --- BTCPayServer/Controllers/UIInvoiceController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/UIInvoiceController.cs b/BTCPayServer/Controllers/UIInvoiceController.cs index a0997f4f1..92c287911 100644 --- a/BTCPayServer/Controllers/UIInvoiceController.cs +++ b/BTCPayServer/Controllers/UIInvoiceController.cs @@ -193,7 +193,8 @@ namespace BTCPayServer.Controllers Metadata = invoiceMetadata.ToJObject(), Currency = pr.Currency, Amount = amount, - Checkout = { RedirectURL = redirectUrl } + Checkout = { RedirectURL = redirectUrl }, + Receipt = new InvoiceDataBase.ReceiptOptions { Enabled = false } }; var additionalTags = new List { PaymentRequestRepository.GetInternalTag(pr.Id) };