mirror of
https://github.com/Cameri/nostream.git
synced 2025-08-09 04:31:59 +02:00
fix: invoice auto marked as paid
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user