Add redirect url to the invoice page

This commit is contained in:
nicolas.dorier
2018-01-14 15:01:09 +09:00
parent aed32204b5
commit 8517b222bf
3 changed files with 7 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ namespace BTCPayServer.Controllers
BuyerInformation = invoice.BuyerInformation, BuyerInformation = invoice.BuyerInformation,
Fiat = FormatCurrency((decimal)dto.Price, dto.Currency), Fiat = FormatCurrency((decimal)dto.Price, dto.Currency),
NotificationUrl = invoice.NotificationURL, NotificationUrl = invoice.NotificationURL,
RedirectUrl = invoice.RedirectURL,
ProductInformation = invoice.ProductInformation, ProductInformation = invoice.ProductInformation,
StatusException = invoice.ExceptionStatus StatusException = invoice.ExceptionStatus
}; };

View File

@@ -112,6 +112,8 @@ namespace BTCPayServer.Models.InvoicingModels
get; get;
internal set; internal set;
} }
public string RedirectUrl { get; set; }
public string Fiat public string Fiat
{ {
get; get;

View File

@@ -77,6 +77,10 @@
<th>Notification Url</th> <th>Notification Url</th>
<td>@Model.NotificationUrl</td> <td>@Model.NotificationUrl</td>
</tr> </tr>
<tr>
<th>Redirect Url</th>
<td>@Model.RedirectUrl</td>
</tr>
</table> </table>
</div> </div>