mirror of
https://github.com/Cameri/nostream.git
synced 2025-04-09 12:28:13 +02:00
fix: invoice auto marked as paid
This commit is contained in:
parent
19bb2f92a8
commit
4cb21f50de
@ -123,15 +123,15 @@
|
||||
console.log('data', data)
|
||||
const { status } = data;
|
||||
|
||||
if (status === 'pending') {
|
||||
fallbackTimeout = setTimeout(getInvoiceStatus, getBackoffTime())
|
||||
return
|
||||
} else if (status === 'expired') {
|
||||
console.log('invoice status', status)
|
||||
|
||||
if (status === 'expired') {
|
||||
hide('pending')
|
||||
show('expired')
|
||||
return
|
||||
} else {
|
||||
console.log('invoice status', status)
|
||||
} else if (status !== 'completed') {
|
||||
fallbackTimeout = setTimeout(getInvoiceStatus, getBackoffTime())
|
||||
return
|
||||
}
|
||||
|
||||
paid = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user