Restoring BtcPay keywords

This commit is contained in:
rockstardev 2020-09-29 16:54:09 -05:00
parent d59295688e
commit f1c1846c66
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ namespace BTCPayServer.Services.Shopify
private static TransactionDataHolder GetParentTransaction(List<TransactionDataHolder> txs)
{
var keywords = new[] {"bitcoin", "btc"};
var keywords = new[] {"bitcoin", "btc", "btcpayserver", "btcpay server"};
return txs.FirstOrDefault(holder =>keywords .Any(s => holder.gateway.Contains(s, StringComparison.InvariantCultureIgnoreCase)));
}

View File

@ -155,7 +155,7 @@ window.BTCPayShopifyIntegrationModule = function () {
insertElement(buttonElement, pageItems.orderConfirmed);
}
if (["bitcoin", "btc"].filter(value => pageItems.paymentMethod.innerText.toLowerCase().indexOf(value) !== -1).length === 0) {
if (["bitcoin", "btc", "btcpayserver", "btcpay server"].filter(value => pageItems.paymentMethod.innerText.toLowerCase().indexOf(value) !== -1).length === 0) {
return;
}
showPaymentInstructions();