diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj
index f63079e43..202d90fac 100644
--- a/BTCPayServer/BTCPayServer.csproj
+++ b/BTCPayServer/BTCPayServer.csproj
@@ -2,7 +2,7 @@
Exe
netcoreapp2.0
- 1.0.0.10
+ 1.0.0.11
diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs
index 165fc1228..63651530a 100644
--- a/BTCPayServer/Controllers/InvoiceController.UI.cs
+++ b/BTCPayServer/Controllers/InvoiceController.UI.cs
@@ -93,9 +93,15 @@ namespace BTCPayServer.Controllers
[HttpGet]
[Route("i/{invoiceId}")]
+ [Route("invoice")]
[AcceptMediaTypeConstraint("application/bitcoin-paymentrequest", false)]
- public async Task Checkout(string invoiceId)
+ public async Task Checkout(string invoiceId, string id = null)
{
+ //Keep compatibility with Bitpay
+ invoiceId = invoiceId ?? id;
+ id = invoiceId;
+ ////
+
var invoice = await _InvoiceRepository.GetInvoice(null, invoiceId);
if(invoice == null)
return NotFound();
@@ -126,7 +132,7 @@ namespace BTCPayServer.Controllers
var expiration = TimeSpan.FromSeconds((double)model.ExpirationSeconds);
model.TimeLeft = PrettyPrint(expiration);
- return View(model);
+ return View(nameof(Checkout), model);
}
private string PrettyPrint(TimeSpan expiration)