mirror of
https://github.com/Cameri/nostream.git
synced 2025-05-30 01:29:11 +02:00
fix: invoice auto marked as paid
This commit is contained in:
parent
769a3f6821
commit
be6d6f1454
@ -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