mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-29 20:04:18 +01:00
Injecting payment button, wasn't displaying when invoice already present
Also button was not getting refresh on modal close
This commit is contained in:
@@ -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})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user