mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 21:31:55 +01:00
chore: comments
This commit is contained in:
parent
07ec19fe99
commit
3d3168ac0f
@ -160,6 +160,7 @@ class AlbyWallet(Wallet):
|
|||||||
|
|
||||||
async def get_payment_status(self, checking_id: str) -> PaymentStatus:
|
async def get_payment_status(self, checking_id: str) -> PaymentStatus:
|
||||||
try:
|
try:
|
||||||
|
# todo: check failed/expired
|
||||||
r = await self.client.get(f"/invoices/{checking_id}")
|
r = await self.client.get(f"/invoices/{checking_id}")
|
||||||
|
|
||||||
if r.is_error:
|
if r.is_error:
|
||||||
|
@ -137,6 +137,7 @@ class LnTipsWallet(Wallet):
|
|||||||
|
|
||||||
async def get_payment_status(self, checking_id: str) -> PaymentStatus:
|
async def get_payment_status(self, checking_id: str) -> PaymentStatus:
|
||||||
try:
|
try:
|
||||||
|
# todo: failed/expired
|
||||||
r = await self.client.post(
|
r = await self.client.post(
|
||||||
url=f"/api/v1/paymentstatus/{checking_id}",
|
url=f"/api/v1/paymentstatus/{checking_id}",
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user