mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
parent
4acca4c6f5
commit
21bd35accd
@ -7,6 +7,8 @@ namespace BTCPayServer.Plugins.Shopify.ApiModels
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonProperty("order_number")]
|
||||
public string OrderNumber { get; set; }
|
||||
[JsonProperty("total_price")]
|
||||
public decimal TotalPrice { get; set; }
|
||||
[JsonProperty("total_outstanding")]
|
||||
|
@ -112,7 +112,7 @@ namespace BTCPayServer.Plugins.Shopify
|
||||
var invoiceOrderId = $"{ShopifyOrderMarkerHostedService.SHOPIFY_ORDER_ID_PREFIX}{orderId}";
|
||||
var matchedExistingInvoices = await _invoiceRepository.GetInvoices(new InvoiceQuery()
|
||||
{
|
||||
OrderId = new[] { invoiceOrderId },
|
||||
TextSearch = invoiceOrderId,
|
||||
StoreId = new[] { storeId }
|
||||
});
|
||||
matchedExistingInvoices = matchedExistingInvoices.Where(entity =>
|
||||
@ -190,7 +190,8 @@ namespace BTCPayServer.Plugins.Shopify
|
||||
{
|
||||
Amount = amount < order.TotalOutstanding ? amount : order.TotalOutstanding,
|
||||
Currency = order.PresentmentCurrency,
|
||||
Metadata = new JObject { ["orderId"] = invoiceOrderId }
|
||||
Metadata = new JObject { ["orderId"] = order.OrderNumber },
|
||||
AdditionalSearchTerms = new []{ "shopify", order.OrderNumber, order.Id, invoiceOrderId}
|
||||
}, store,
|
||||
Request.GetAbsoluteRoot(), new List<string>() { invoiceOrderId });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user