mirror of
https://github.com/Cameri/nostream.git
synced 2025-12-18 16:41:08 +01:00
fix: invoice auto marked as paid
This commit is contained in:
@@ -123,15 +123,15 @@
|
|||||||
console.log('data', data)
|
console.log('data', data)
|
||||||
const { status } = data;
|
const { status } = data;
|
||||||
|
|
||||||
if (status === 'pending') {
|
console.log('invoice status', status)
|
||||||
fallbackTimeout = setTimeout(getInvoiceStatus, getBackoffTime())
|
|
||||||
return
|
if (status === 'expired') {
|
||||||
} else if (status === 'expired') {
|
|
||||||
hide('pending')
|
hide('pending')
|
||||||
show('expired')
|
show('expired')
|
||||||
return
|
return
|
||||||
} else {
|
} else if (status !== 'completed') {
|
||||||
console.log('invoice status', status)
|
fallbackTimeout = setTimeout(getInvoiceStatus, getBackoffTime())
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
paid = true
|
paid = true
|
||||||
|
|||||||
Reference in New Issue
Block a user