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:

@@ -62,7 +65,7 @@
- +