We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 769a3f6 commit be6d6f1Copy full SHA for be6d6f1
resources/invoices.html
@@ -123,15 +123,15 @@ <h2 class="text-danger">Invoice expired!</h2>
123
console.log('data', data)
124
const { status } = data;
125
126
- if (status === 'pending') {
127
- fallbackTimeout = setTimeout(getInvoiceStatus, getBackoffTime())
128
- return
129
- } else if (status === 'expired') {
+ console.log('invoice status', status)
+
+ if (status === 'expired') {
130
hide('pending')
131
show('expired')
132
return
133
- } else {
134
- console.log('invoice status', status)
+ } else if (status !== 'completed') {
+ fallbackTimeout = setTimeout(getInvoiceStatus, getBackoffTime())
+ return
135
}
136
137
paid = true
0 commit comments