mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Save paymentRequestId in Metadata when creating invoice for Payment Request (#2644)
* Save paymentRequestId in Metadata when creating invoice * Added Payment Request ID + link on invoice detail page * Added paymentRequestId to the webhook payload * Removed PaymentRequestId from webhook payload (rolled back previous change) * Using strongly typed InvoiceMetadata * Added OrderUrl metadata field to invoice + link * Added Metadata.OrderUrl to docs * Made orderUrl visible when no orderId is present
This commit is contained in:
@@ -110,6 +110,7 @@ namespace BTCPayServer.Controllers
|
||||
StoreId = store.Id,
|
||||
StoreName = store.StoreName,
|
||||
StoreLink = Url.Action(nameof(StoresController.UpdateStore), "Stores", new { storeId = store.Id }),
|
||||
PaymentRequestLink = Url.Action(nameof(PaymentRequestController.ViewPaymentRequest), "PaymentRequest", new { id = invoice.Metadata.PaymentRequestId }),
|
||||
Id = invoice.Id,
|
||||
State = invoice.GetInvoiceState().ToString(),
|
||||
TransactionSpeed = invoice.SpeedPolicy == SpeedPolicy.HighSpeed ? "high" :
|
||||
|
||||
Reference in New Issue
Block a user