mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-29 20:04:18 +01:00
Bugfixing detection of invoice paid in shopify modal
This commit is contained in:
@@ -21,7 +21,7 @@ var BtcPayServerModal = (function () {
|
||||
var interval = setInterval(function () {
|
||||
getBtcPayInvoice(btcPayServerUrl, invoiceId, storeId)
|
||||
.then(function (invoice) {
|
||||
if (invoice.status == "complete") {
|
||||
if (invoice.status === "complete" || invoice.status === "paid") {
|
||||
clearInterval(interval);
|
||||
resolve(invoice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user