Returns 404 if the shopify order isn't using btcpay

This commit is contained in:
nicolas.dorier 2025-04-09 17:34:26 +09:00
parent a482636ebc
commit e2e1229efb
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -254,7 +254,7 @@ public class UIShopifyV2Controller : Controller
var containsKeyword = order.PaymentGatewayNames.Any(pgName => ShopifyHostedService.IsBTCPayServerGateway(pgName));
if (!containsKeyword)
return BadRequest("Order wasn't fulfiled with BTCPay Server payment option");
return NotFound("Order wasn't fulfilled with BTCPay Server payment option");
var orderId = order.Id.Id;
var searchTerm = $"{Extensions.SHOPIFY_ORDER_ID_PREFIX}{orderId}";