Add ability to set default currency for a store (#2998)

This commit is contained in:
Nicolas Dorier
2021-10-20 23:17:40 +09:00
committed by GitHub
parent 407f26b1dc
commit 4cf3249e0b
17 changed files with 129 additions and 64 deletions

View File

@@ -685,6 +685,8 @@ namespace BTCPayServer.Controllers
}
readonly ArraySegment<Byte> DummyBuffer = new ArraySegment<Byte>(new Byte[1]);
public string CreatedInvoiceId;
private async Task NotifySocket(WebSocket webSocket, string invoiceId, string expectedId)
{
if (invoiceId != expectedId || webSocket.State != WebSocketState.Open)
@@ -874,6 +876,7 @@ namespace BTCPayServer.Controllers
}, store, HttpContext.Request.GetAbsoluteRoot(), cancellationToken: cancellationToken);
TempData[WellKnownTempData.SuccessMessage] = $"Invoice {result.Data.Id} just created!";
CreatedInvoiceId = result.Data.Id;
return RedirectToAction(nameof(ListInvoices));
}
catch (BitpayHttpException ex)