diff --git a/BTCPayServer/wwwroot/shopify/btcpay-browser-client.js b/BTCPayServer/wwwroot/shopify/btcpay-browser-client.js index fca171372..77d2978ff 100644 --- a/BTCPayServer/wwwroot/shopify/btcpay-browser-client.js +++ b/BTCPayServer/wwwroot/shopify/btcpay-browser-client.js @@ -21,7 +21,8 @@ var BtcPayServerModal = (function () { var interval = setInterval(function () { getBtcPayInvoice(btcPayServerUrl, invoiceId, storeId) .then(function (invoice) { - if (invoice.status === "complete" || invoice.status === "paid") { + // in most cases this will be triggered by paid, but we put other statuses just in case + if (invoice.status === "paid" || invoice.status === "complete" || invoice.status === "confirmed") { clearInterval(interval); resolve(invoice); }