mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Bugfixing detection of invoice paid in shopify modal
This commit is contained in:
parent
ce15eed343
commit
fa08c52f74
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue