();
- var settings = await SideShiftService.GetSideShiftForStore(storeId);
+ var settings = await SideShiftService.GetSideShiftForInvoice(Model.InvoiceId, Model.StoreId);
if (settings?.Enabled is true)
{
diff --git a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml
index eee01f7..c60c279 100644
--- a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml
+++ b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml
@@ -93,7 +93,7 @@ document.addEventListener('DOMContentLoaded', (event) => {
document.getElementById("ss-result-additional-info").value = "";
if (isValid()){
shiftButton.setAttribute("disabled", "disabled");
- const type = "permanent";
+ const type = "";//"permanent";
if (type ==="permanent"){
fetch("https://sideshift.ai/api/v2/shifts/variable",{
diff --git a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PullPaymentViewInsert.cshtml b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PullPaymentViewInsert.cshtml
index 40cb763..0a6ba1b 100644
--- a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PullPaymentViewInsert.cshtml
+++ b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PullPaymentViewInsert.cshtml
@@ -1,7 +1,5 @@
-@using System.Net.Http
-@using BTCPayServer.Plugins.SideShift
+@using BTCPayServer.Plugins.SideShift
@model BTCPayServer.Models.ViewPullPaymentModel
-@inject IHttpClientFactory HttpClientFactory
@inject SideShiftService SideShiftService
@{
var ss = await SideShiftService.GetSideShiftForStore(Model.StoreId);
diff --git a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/StoreIntegrationSideShiftOption.cshtml b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/StoreIntegrationSideShiftOption.cshtml
index 9127400..64e4665 100644
--- a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/StoreIntegrationSideShiftOption.cshtml
+++ b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/StoreIntegrationSideShiftOption.cshtml
@@ -1,23 +1,10 @@
@using BTCPayServer.Abstractions.Contracts
@using BTCPayServer.Plugins.SideShift
-@using Microsoft.AspNetCore.Mvc.TagHelpers
-@using Microsoft.AspNetCore.Routing
@inject SideShiftService SideShiftService
@inject IScopeProvider ScopeProvider
@{
var storeId = ScopeProvider.GetCurrentStoreId();
-
- SideShiftSettings settings = null;
- if (!string.IsNullOrEmpty(storeId))
- {
- try
- {
- settings = await SideShiftService.GetSideShiftForStore(storeId);
- }
- catch (Exception)
- {
- }
- }
+ var settings = await SideShiftService.GetSideShiftForStore(storeId);
}
@if (!string.IsNullOrEmpty(storeId))
{