diff --git a/BTCPayServer/wwwroot/shopify/btcpay-shopify.js b/BTCPayServer/wwwroot/shopify/btcpay-shopify.js index ec5f47a78..2aab348e6 100644 --- a/BTCPayServer/wwwroot/shopify/btcpay-shopify.js +++ b/BTCPayServer/wwwroot/shopify/btcpay-shopify.js @@ -126,6 +126,7 @@ window.BTCPayShopifyIntegrationModule = function () { window.btcpay.onModalWillLeave(function () { modalShown = false; getOrCheckInvoice(true).then(function (d) { + buttonElement.innerHTML = payButtonHtml; handleInvoiceData(d, {backgroundCheck: true}) }); }); @@ -158,6 +159,7 @@ window.BTCPayShopifyIntegrationModule = function () { showPaymentInstructions(); window.onPayButtonClicked = onPayButtonClicked.bind(this); getOrCheckInvoice(true).then(function (d) { + injectPaymentButtonHtml(); handleInvoiceData(d, {backgroundCheck: true}) });