diff --git a/lnbits/core/services.py b/lnbits/core/services.py index 3d54e218d..875f7644c 100644 --- a/lnbits/core/services.py +++ b/lnbits/core/services.py @@ -321,7 +321,10 @@ async def check_invoice_status( payment = await get_wallet_payment(wallet_id, payment_hash, conn=conn) if not payment: return PaymentStatus(None) - status = await WALLET.get_invoice_status(payment.checking_id) + if payment.is_out: + status = await WALLET.get_payment_status(payment.checking_id) + else: + status = await WALLET.get_invoice_status(payment.checking_id) if not payment.pending: return status if payment.is_out and status.failed: