From 3c1e81cf0b050cb68ab2d1ecbf73a67dc42177c8 Mon Sep 17 00:00:00 2001
From: Chukwuleta Tobechi <47084273+TChukwuleta@users.noreply.github.com>
Date: Thu, 22 Jan 2026 18:35:18 +0100
Subject: [PATCH] update the refund image
---
.../Controllers/UIShopifyV2Controller.cs | 1 +
.../ShopifyRefundWebhookSettingsViewModel.cs | 2 +-
.../Views/UIShopify/RefundSettings.cshtml | 15 +++++++++------
3 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Controllers/UIShopifyV2Controller.cs b/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Controllers/UIShopifyV2Controller.cs
index 9e691ba..6a86679 100644
--- a/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Controllers/UIShopifyV2Controller.cs
+++ b/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Controllers/UIShopifyV2Controller.cs
@@ -330,6 +330,7 @@ public class UIShopifyV2Controller : Controller
Enum.TryParse(settings.Setup?.SelectedRefundOption, ignoreCase: true, out var refundOption);
var vm = new ShopifyRefundWebhookSettingsViewModel
{
+ ShopName = GetShopName(settings.Setup?.ShopUrl),
WebhookUrl = Url.Action(nameof(Webhook), "UIShopifyV2", new { storeId }, Request.Scheme),
WebhookSecret = settings.Setup?.WebhookSecret,
SpreadPercentage = settings.Setup.SpreadPercentage,
diff --git a/Plugins/BTCPayServer.Plugins.ShopifyPlugin/ViewModels/ShopifyRefundWebhookSettingsViewModel.cs b/Plugins/BTCPayServer.Plugins.ShopifyPlugin/ViewModels/ShopifyRefundWebhookSettingsViewModel.cs
index 739d8ff..e8b7b5b 100644
--- a/Plugins/BTCPayServer.Plugins.ShopifyPlugin/ViewModels/ShopifyRefundWebhookSettingsViewModel.cs
+++ b/Plugins/BTCPayServer.Plugins.ShopifyPlugin/ViewModels/ShopifyRefundWebhookSettingsViewModel.cs
@@ -10,7 +10,7 @@ public class ShopifyRefundWebhookSettingsViewModel
CurrentRate,
RateThen
}
-
+ public string ShopName { get; set; }
public string WebhookUrl { get; set; }
public string WebhookSecret { get; set; }
[Required(ErrorMessage = "Please select a refund option")]
diff --git a/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Views/UIShopify/RefundSettings.cshtml b/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Views/UIShopify/RefundSettings.cshtml
index 2090726..0c9bd21 100644
--- a/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Views/UIShopify/RefundSettings.cshtml
+++ b/Plugins/BTCPayServer.Plugins.ShopifyPlugin/Views/UIShopify/RefundSettings.cshtml
@@ -41,13 +41,16 @@
and sends a secure claim link to the customer by email.
- Copy the webhook URL below and paste it into your Shopify Admin dashboard.
+ Copy the webhook URL below and create a webhook via
+
+ this link.
+ Use the settings below: