request fee from mint

This commit is contained in:
callebtc
2022-10-05 22:26:57 +02:00
parent 16eb3cf6c5
commit 2d48c3116c
7 changed files with 44 additions and 17 deletions

View File

@@ -116,6 +116,8 @@ class LNbitsWallet(Wallet):
)
except:
return PaymentStatus(None)
if r.json().get("detail"):
return PaymentStatus(None)
return PaymentStatus(r.json()["paid"])
async def get_payment_status(self, checking_id: str) -> PaymentStatus: