mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Restoring BtcPay keywords
This commit is contained in:
parent
d59295688e
commit
f1c1846c66
@ -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)));
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user