From 2d717cbf01df4e9b228de5143ba2e8daadb7c19f Mon Sep 17 00:00:00 2001 From: d11n Date: Fri, 22 Apr 2022 10:28:46 +0200 Subject: [PATCH] Fix payment request redirect URL (#3672) --- BTCPayServer/Extensions/UrlHelperExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BTCPayServer/Extensions/UrlHelperExtensions.cs b/BTCPayServer/Extensions/UrlHelperExtensions.cs index d51394e09..3ecc7c9ed 100644 --- a/BTCPayServer/Extensions/UrlHelperExtensions.cs +++ b/BTCPayServer/Extensions/UrlHelperExtensions.cs @@ -32,7 +32,7 @@ namespace Microsoft.AspNetCore.Mvc return urlHelper.GetUriByAction( action: nameof(UIPaymentRequestController.ViewPaymentRequest), controller: "UIPaymentRequest", - values: new { id = paymentRequestId }, + values: new { payReqId = paymentRequestId }, scheme, host, pathbase); } @@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Mvc return urlHelper.GetUriByAction( action: nameof(UIInvoiceController.Invoice), controller: "UIInvoice", - values: new { invoiceId = invoiceId }, + values: new { invoiceId }, scheme, host, pathbase); } @@ -59,7 +59,7 @@ namespace Microsoft.AspNetCore.Mvc return urlHelper.GetUriByAction( action: nameof(UIInvoiceController.Checkout), controller: "UIInvoice", - values: new { invoiceId = invoiceId }, + values: new { invoiceId }, scheme, host, pathbase); }