update the refund image
This commit is contained in:
parent
7a510d3358
commit
3c1e81cf0b
@ -330,6 +330,7 @@ public class UIShopifyV2Controller : Controller
|
||||
Enum.TryParse<ShopifyRefundWebhookSettingsViewModel.RefundOption>(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,
|
||||
|
||||
@ -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")]
|
||||
|
||||
@ -41,13 +41,16 @@
|
||||
and sends a secure claim link to the customer by email.
|
||||
</p>
|
||||
<p class="mb-2">
|
||||
Copy the webhook URL below and paste it into your Shopify Admin dashboard.
|
||||
Copy the webhook URL below and create a webhook via
|
||||
<a href="https://admin.shopify.com/store/@(Model.ShopName)/settings/notifications/webhooks"
|
||||
target="_blank" rel="noopener noreferrer" style="color: inherit; text-decoration: underline;">
|
||||
this link</a>.
|
||||
Use the settings below:
|
||||
</p>
|
||||
<ul class="mb-2">
|
||||
<li>Go to <strong>Settings → Notifications → Webhooks</strong></li>
|
||||
<li>Create a webhook for the <strong>Refund create</strong> event</li>
|
||||
<li>Set the format to <strong>JSON</strong></li>
|
||||
<li>Use Webhook API version <strong>2026-01</strong></li>
|
||||
<li>Event: <strong>Refund create</strong></li>
|
||||
<li>Format: <strong>JSON</strong></li>
|
||||
<li>Webhook API version: <strong>2026-01</strong></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -62,7 +65,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label asp-for="WebhookSecret" class="form-label fw-bold">Webhook Secret</label>
|
||||
<label asp-for="WebhookSecret" class="form-label fw-bold">Webhook Signature</label>
|
||||
<input asp-for="WebhookSecret" class="form-control" placeholder="Enter your Shopify webhook secret" />
|
||||
<span asp-validation-for="WebhookSecret" class="text-danger"></span>
|
||||
<div class="form-text">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user