mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-05 22:34:25 +01:00
Fix shopify
This commit is contained in:
@@ -21,7 +21,7 @@ namespace BTCPayServer.Plugins.Shopify
|
||||
var existingShopifyOrderTransactions = (await _client.TransactionsList(orderId)).transactions;
|
||||
|
||||
//if there isn't a record for btcpay payment gateway, abort
|
||||
var baseParentTransaction = existingShopifyOrderTransactions.FirstOrDefault(holder => !_keywords.Any(a => holder.gateway.Contains(a, StringComparison.InvariantCultureIgnoreCase)));
|
||||
var baseParentTransaction = existingShopifyOrderTransactions.FirstOrDefault(holder => _keywords.Any(a => holder.gateway.Contains(a, StringComparison.InvariantCultureIgnoreCase)));
|
||||
if (baseParentTransaction is null)
|
||||
{
|
||||
return null;
|
||||
|
||||
@@ -164,14 +164,11 @@ namespace BTCPayServer.Plugins.Shopify
|
||||
order = await client.GetOrder(orderId);
|
||||
}
|
||||
|
||||
if (order?.FinancialStatus != "pending" && order?.FinancialStatus != "partially_paid")
|
||||
{
|
||||
return Ok(new
|
||||
return Ok(new
|
||||
{
|
||||
invoiceId = firstInvoiceSettled.Id,
|
||||
status = firstInvoiceSettled.Status.ToString().ToLowerInvariant()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (checkOnly)
|
||||
|
||||
Reference in New Issue
Block a user