mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-30 11:24:23 +01:00
Restoring BtcPay keywords
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user