Cleanup v2 leftovers

This commit is contained in:
Dennis Reimann
2024-04-05 17:43:38 +02:00
parent 4208110d57
commit d2e9ec9494
23 changed files with 44 additions and 83 deletions

View File

@@ -686,7 +686,8 @@ namespace BTCPayServer.Controllers
if (view == "modal")
model.IsModal = true;
return View("CheckoutV2", model);
return View(model);
}
[HttpGet("invoice-noscript")]
@@ -963,10 +964,10 @@ namespace BTCPayServer.Controllers
if (storeBlob.PlaySoundOnPayment)
{
model.PaymentSoundUrl = string.IsNullOrEmpty(storeBlob.SoundFileId)
? string.Concat(Request.GetAbsoluteRootUri().ToString(), "checkout-v2/payment.mp3")
? string.Concat(Request.GetAbsoluteRootUri().ToString(), "checkout/payment.mp3")
: await _fileService.GetFileUrl(Request.GetAbsoluteRootUri(), storeBlob.SoundFileId);
model.ErrorSoundUrl = string.Concat(Request.GetAbsoluteRootUri().ToString(), "checkout-v2/error.mp3");
model.NfcReadSoundUrl = string.Concat(Request.GetAbsoluteRootUri().ToString(), "checkout-v2/nfcread.mp3");
model.ErrorSoundUrl = string.Concat(Request.GetAbsoluteRootUri().ToString(), "checkout/error.mp3");
model.NfcReadSoundUrl = string.Concat(Request.GetAbsoluteRootUri().ToString(), "checkout/nfcread.mp3");
}
var expiration = TimeSpan.FromSeconds(model.ExpirationSeconds);