Merge pull request #5337 from mempool/nymkappa/invoice-check-http-code

[btcpay] handle new http code 204 when calling /payments/bitcoin/check
This commit is contained in:
wiz authored and GitHub committed 2024-07-14 20:12:23 +09:00
commit 6177b97bd1
2 files changed
+6 -3

No files matched your search

@@ -74,7 +74,10 @@ export class BitcoinInvoiceComponent implements OnInit, OnChanges, OnDestroy {
}
this.paymentStatusSubscription = this.apiService.getPaymentStatus$(this.invoice.btcpayInvoiceId).pipe(
retry({ delay: () => timer(2000)})
).subscribe((result) => {
).subscribe((response) => {
if (response.status === 204 || response.status === 404) {
return;
}
this.paymentStatus = 3;
this.completed.emit();
});